|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help with Flash timeline and playing movieclip....
OK here's the situation...My Movieclip is 50 Frames long. I want to be able to play the MC and stop at Frame 25 where the movie displays 3 buttons. From this point I want the buttons to be able to go to their respective scenes. But I want the MC to finish playing the rest of the Movieclip...Is this possible??
|
|
#2
|
|||
|
|||
|
Quote:
I don't know if you want to play the button scene before or after finishing out to frame 50 so I've written what I think will work for either case. Playing button scene after finishing out to frame 50 on the release of each button set a variable defining which button was pressed and add a statement to goto frame 26 and play button 1 actions: on (release) { nextclip=1; gotoAndPlay(26); } button 2 actions: on (release) { nextclip=2; gotoAndPlay(26); } button 3 actions: on (release) { nextclip=3; gotoAndPlay(26); } then in frame 50 add the following actions if (nextclip==1) { add code to send to button 1 scene } if (nextclip==2) {add code to send to button 2 scene } if (nextclip==3) {add code to send to button 3 scene } Playing button scene before finishing out to frame 50 Play your button scene and at the end of each button scene add the following action: gotoAndPlay("original scene name", 26) the original scene name should be the scene that the buttons were in and should also have the double quotes surrounding it. |
|
#3
|
|||
|
|||
|
It worked perfectly! I figured there was some kind of variable that I needed to make this work. I originally had only 2 buttons, but when I added the 3rd, there were problems. But this worked great. I can finally move on!!
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Help with Flash timeline and playing movieclip.... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|