must begin with letter, no white space sp. characters or dashes. underscore ok
use prefix/suffixes (ex. sdfas_btn for sdfas button)
unique name in properties window
event. listener = gets the commands
double click button for special button timeline,
control > test scene for preview
action script
code in main timeline, in its own layer
" act_mc.buttonMode = true; " tell movie file to act as button (hand to click)
comment out:
// asdfasdf //
or
/* asdfasdf
asfsdfasd
asdfs
*/
hit area: use shape tool in hit area editing window accessable by double clicking the button. Not editable in scene.
actionscripting
"y -= 5" y's numerical value - 5.
instance name - must be unique, way for information to be tagged so it can be referenced back to.
event listener - takes in input, or tells flash to take in input at given event
function - what it does with the input
parameter - the range of input, found in between parenthesis
event target - where the event occurs
blue text = actionscript terms
gotoAndPlay(2);
goes to frame 2 and plays on a loop.
movie clips play indep of the timeline, therefore main timeline could only have 1 keyframe for movie buttons.
No comments:
Post a Comment