|
-
Using one button to play two movies
I'm designing a photos page for my band. (you can see what I have so far at stairwell.net.) I want to create a button that will do two things:
1. play a simple movie, and then...
2. play another movie immediately after the first movie finishes (but not before). (this movie will open a full size version of a thumbnailed image.)
I can make the two movies happen at once, but i want flash to wait for (1) to finish, and then do (2).
thanks.
[Edited by tkfourtwoone on 11-13-2001 at 02:05 AM]
-
Use tellTarget.
At the end of the first movieclip [MC] add the following actionscript [AS]:
tellTarget ("_root.movieclip2") {
play ();
}
-
I am using telltarget commands for my button. I was asking if I can just embed both commands in the button. are you saying that I should:
1. just have one command in the button (to play the first [MC]), and then
2. embed a command at the end of [MC]1 to play [MC]2?
I guess that makes sense, I'll give that a shot. Though I'm still curious if I can just embed both commands in the one button. Please confirm if this is possible or not. Thanks!
-
one tell target on the button and one in the movie clip(1) would be the easiest way to do it.
-
-
well
You could always do an if else command.
What it would be would be....if ....movie clip 1 is finished, tell movie clip two to start.
To let flash know that movie clip one is finished....at the end of the clip, you'd set a variable to something. Like......finished equals true...or something like that.
SO then the code would look like, if finished equals true, then tell movie 2 to play, otherwise, do nothing.
But, the above posters are right....the other way is better.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|