Search Tutorials
The CodeInitializingFrame 1's Action Script is some initializing:Set Variable: "stagewidth" = 540 Set Variable: "leftmcwidth" = GetProperty ( "/leftmc", _width ) Set Variable: "centermcwidth" = GetProperty ( "/centermc", _width ) Set Variable: "rightmcwidth" = GetProperty ( "/rightmc", _width ) Set Variable: "left" = "slow" Go to and Play ("left") Code Set Variable: "stagewidth" = 540 Comment Basically, we're setting a variable 'stagewidth' to the width of the stage. If you change your .fla's stage width, you must make the number here match it. Code Set Variable: "leftmcwidth" = GetProperty ( "/leftmc", _width ) Set Variable: "centermcwidth" = GetProperty ( "/centermc", _width ) Set Variable: "rightmcwidth" = GetProperty ( "/rightmc", _width ) Comment We get the width of each movie clip and store it in a value. Code Set Variable: "left" = "slow" Go to and Play ("left") Comment The movie is also set to play slow starting in the 'left' direction. We'll take a look at what the computer does with the variable "left" set to the value "slow" at the end of the tutorial.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|