Action Script with Flash CS 3
Learning Programminglearning to program is a process, not an eventexpect to learn something every time you programdon't worry if you don't follow everything the first time througheven those things you don't understand will give you get a sense of what's possible
Programming: Talking to Kidbe explicit in every detaillist every single step that's necessary to complete a task
You can do with action script code:control the play head of a timelinemove things aroundcreate and manage user interfacesplay soundscontrol videomanage data (xml, lists, etc)communicate with server-side applications (e.g., web servers)
where to put the codewithin a .fla file, code is attached to either a frame, button, or movie clipto attach code to a frame, button, or movie clip, first select it, then type in the actions panelnotice that the actions panel title changes to match the current selection (Actions - Frame, Actions - Button, or Actions - Movie Clipcheck the actions panel title before typing so you know what you're attaching your code tocode on a movie clip or button controls that clip or buttongenerally speaking, placing code on clips and buttons is discouraged, but is sometimes convenient
It’s a Stage PlayYou got StageYou got TimelineYou got Actors (MovieClip, Button, Graphic)Plan Actions for Timeline and ActorsControl Timeline (play, pause, stop, go to)Direct Actors(move, rotate, scale)
Operatorsarithmetic: -, +, *, /comparison: < (less than), > (greater than)++,--Operator precedence
conditional statementsif, else, else ifswitch, case
Repetitive Taskswhilefor, for each inwhile (compare) { statements update } for (initialize; compare; update) { statements }
FunctionsRedundancy is badfunction displayArea (width, height) { 	trace(width * height);}Built-in functionsExiting functionsreturning information to the point of execution

Action Script 3 With Flash Cs3

  • 1.
  • 2.
    Learning Programminglearning toprogram is a process, not an eventexpect to learn something every time you programdon't worry if you don't follow everything the first time througheven those things you don't understand will give you get a sense of what's possible
  • 3.
    Programming: Talking toKidbe explicit in every detaillist every single step that's necessary to complete a task
  • 4.
    You can dowith action script code:control the play head of a timelinemove things aroundcreate and manage user interfacesplay soundscontrol videomanage data (xml, lists, etc)communicate with server-side applications (e.g., web servers)
  • 5.
    where to putthe codewithin a .fla file, code is attached to either a frame, button, or movie clipto attach code to a frame, button, or movie clip, first select it, then type in the actions panelnotice that the actions panel title changes to match the current selection (Actions - Frame, Actions - Button, or Actions - Movie Clipcheck the actions panel title before typing so you know what you're attaching your code tocode on a movie clip or button controls that clip or buttongenerally speaking, placing code on clips and buttons is discouraged, but is sometimes convenient
  • 6.
    It’s a StagePlayYou got StageYou got TimelineYou got Actors (MovieClip, Button, Graphic)Plan Actions for Timeline and ActorsControl Timeline (play, pause, stop, go to)Direct Actors(move, rotate, scale)
  • 7.
    Operatorsarithmetic: -, +,*, /comparison: < (less than), > (greater than)++,--Operator precedence
  • 8.
  • 9.
    Repetitive Taskswhilefor, foreach inwhile (compare) { statements update } for (initialize; compare; update) { statements }
  • 10.
    FunctionsRedundancy is badfunctiondisplayArea (width, height) { trace(width * height);}Built-in functionsExiting functionsreturning information to the point of execution