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
| » Level Basic |
|
Added: 2000-12-23 Rating: 7 Votes: 53 |
| » Author |
| Dustin Taylor is a college student from north Texas who tries to bribe his professors on a regular basis (no takers so far). He also works for a software company and really love his job because it started him on flash. He is also a senior moderator at Flash Kit with the Flashtyper forum. |
| » Download |
| Download the files used in this tutorial. |
| Download (111 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!