Search Tutorials
Frames 2 & 3 - The Central Script (cont) waitstart - The "waitstart" status only occurs when a new movie is loaded, therefore this is where we switch to the "Start Effect" button, position the movie, and update the effect title text field with the appropriate value, depending on which movie is loaded (hence the check of the "movie" variable). Since the "movie" variable is stored within the button Movie Clip, I opted to put the whole thing in a big "Tell Target" statement which points to "/buttons".
If (status eq "waitstart")
Begin Tell Target ("/buttons")
Go to and Stop ("start")
Set Property ("_level1", X Position) = 30
Set Property ("_level1", Y Position) = 105
If (movie = 1)
Set Variable: "/:title" = "Effect 1 - Fold In and Out"
Else If (movie = 2)
Set Variable: "/:title" = "Effect 2 - Green Streak"
Else If (movie = 3)
Set Variable: "/:title" = "Effect 3 - Red Stix"
Else If (movie = 4)
Set Variable: "/:title" = "Effect 4 - Elastic Shimmer"
Else If (movie = 5)
Set Variable: "/:title" = "Effect 5 - Coming to get you"
End If
End Tell Target
End If
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|