Flash 8 ActionScripts - PowerPoint PPT Presentation

1 / 32
About This Presentation
Title:

Flash 8 ActionScripts

Description:

7 Flash 8 ActionScripts ActionScript ... – PowerPoint PPT presentation

Number of Views:85
Avg rating:3.0/5.0
Slides: 33
Provided by: nun106
Category:

less

Transcript and Presenter's Notes

Title: Flash 8 ActionScripts


1
????? 7
  • Flash 8 ActionScripts

2
ActionScript
  • ??? ???????????????????? ???????????????????????
    ??????????????????????? Flash ???????????????????
    Interactive ???? ??????????????????????
    ?????????????????? ???????

3
??????????????????????????????????????
  • ??????? ??????????????????????????????????????????
    ???????
  • ??? ActionScritp ????????????????
    ????????????????????????????????????????????????

4
???????????????????????? Tween
5
???????????????????????? ActionScript
6
???????? Action
Script panel Toolbar
Actions Toolbox
Script navigator
7
???????????????????????? Action
  • ???????????????????????? Actions ????? 2 ???? ???
  • Script Assist
  • Expert Mode
  • ?????????????????????? 2 ???? ???
    ???????????????????

8
????????? Script Assist
  • ???????? Script Assist ?????????????????????????
    ????????????????????????????????????????????
    ????????????????????????????????????????????????

9
????????? Expert Mode
  • ?????? Expert ?????????????????????????????? ??
    Script panel ??????? ??????????????????
    ????????????????????????? ???????????????
    ??????????????????? Actions Toolbox ?????

10
?????????????????????????????? Script
  • ?????????????
  • Foreground (???? , ( , ,) ??????????
  • Keywords (???? var , function) ???????
  • Identifiers (???? object , function) ???????
  • Comments (???????????????) ?????
  • String (???? Hello) ???????

11
?????????????????????????????? Script
  • ?????????????????????
  • ????????????????????????????????????????????????
    ActionScript ?????????????????????????????????????
    ??? ???? ????????? object ????????????????????????
    method ???? Properties ??? object

12
?????????????????????????????? Script
  • ?????????????????????????????

13
?????????????????????????????? Script
  • ?????????????????
  • ????????????????????????????????? Action Script
    ??????????????????????????????????????????????????
    ????????????????????????????? ? ???????? ???
  • ?????????????? (Check Syntax)

14
?????????????????????????????? Script
  • ?????????????????????????

15
?????????????????????????????? Script
  • ????????????????????
  • ?????????????????????????????????????????????????
    ???????????????????????? ????????????
  • ???????? ????????????????????? Action
    ???????????? Line Numbers

16
?????????????????????????????? Script
  • ????????????????????????????

?????????????????
??????????? Line Number
17
?????????????????????????????? Script
  • ????????????
  • ?????????????????????????????????????????????
    ??????????????????????????? ?????????????????????
    ????????????
  • ??????????? ??????????????????????? Word Wrap
    ??????????

18
?????????????????????????????? Script
  • ????????????????????

????????????????????????????????????? Action
??????????? Word Wrap
19
??????????????????????
  • ???????????????????????????????
  • ?????????????????????? (.) ?????????????
    Properties ???? Method ?????????????????
    ?????????????????????????????? instance ???
    MovieClips ??? Properties ????
  • myMovieClip._visible
  • myMovieClip._play()

20
??????????????????????
  • ????????????-?????????(Case sensitivity)
  • ???? ActionScript ???????????????????????????????
    ??-???????????????????? ??????????????????????????
    ??? ??????????????????????????

21
??????????????????????
  • ?????? Semicolons ()
  • ?? ActionScript ?????????????????????????????????
    ???????? () ????????????????????????????????????
    ????????????????????????????
  • var x 5 var x 5
  • var y 10 var y 10 x5 y10

??????????
22
??????????????????????
  • ???????????????? (Comment)
  • ?????????????????????????????????????????????????
    ?????????????????????????
  • // ????????????????????????????????????????
  • ???? // this is comment
  • // ??????????????????????????????????????
  • ???? / this is first comment
  • this is second comment /

23
??????????????????????
  • ??????????????? trace ?????????????????
  • ?????????? movie ???? scene ???????? action
    trace ??????????????????????????? ??????????????
    Output
  • trace(expression)

24
??????????????????????
  • ???????? ActionScript
  • ???????????????
  • ????????????????????????
  • var my_x10
  • my_x Good Morning

25
??????????????????????
  • ???????? ActionScript
  • ??????????????????
  • var variablenamedatatype
  • ?????? variablename ??????? ??????????
  • datatype ??????? ??????????
  • ???? var my_NumNumber 1

26
??????????????????????
  • ?????????????????????
  • ??????????????????????????? ???????? identifier
    ??? ?????????????????????????? , _ ,
    ????????????????????????????? ???? ??????????????
    ???? , , _at_
  • ?????????????????????? Keyword ???? break case
    true false
  • ????????????????????????????????????????????

27
??????????????????????
  • ?????????????
  • ?????????? String ??????????????????????????
    ???? ???? Tommy
  • ?????????? Number ???????????????????????????
    (Integer) ??? ?????????
  • ?????????? Boolean ?? 2 ??? ??? True ??? False
    ????????????? 1 ??? 0 ????????

28
??????????????????????
  • ?????????????????????? ActionScript
  • ????????????????????????
  • ??????????????????????
  • ?????????????????????????????
  • ???????????????????????

29
??????????????????????
  • ???????????????????????? (Numeric Operators)
  • ?????????????????????????????????? ???? ??????
    ????? ?????? ???????
  • ???? 24 ???? 103
  • - ???? 4 - 2 ???? X
  • ???? 4 2 - ???? X-
  • / ???? 5 / 2

30
??????????????????????
  • ?????????????????????? (Assignment Operators)
  • ??????????????????????????? ?????????????????
    ??????? ??????????? - /
  • ???? x y
  • ???? x y
  • - ???? x - y
  • ???? x y

31
??????????????????????
  • ????????????????????????????? (Comparison
    Operators)
  • ????????????????????? 2 ??? ????????????????
    true ???? false
  • gt ???? x gt y ???? x y
  • gt ???? x gt y ! ???? X ! y
  • lt ???? x lt y
  • lt ???? x lt y

32
??????????????????????
  • ??????????????????????? (Logical Operators)
  • ?????????????????????????????????????????? true
    ??? false
  • (and) ???? expr1 expr2 (or)
    ???? expr1 expr2
  • ! (not) ???? !exp
Write a Comment
User Comments (0)
About PowerShow.com