|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Play one label, then jump to another
Hi
I have a flash file with a button and a movieclip, lets call it 'test'. The movieclip 'test' has several labels (lbl1, lbl2, lbl3, lbl4, lbl5,...). If the button is pressed, I want to play lbl2 in the 'test' movieclip, then skip lbl3 and lbl4, and go to lbl5. Is there a code to do this without putting gotoAndPlay("lbl5"); on the end of lbl2? Thanks in advance Teis |
|
#2
|
|||
|
|||
|
Are you coding in AS2 or 3?
You could create a condition in the main script that says: if (mc.currentFrame == 30) { mc.gotoAndPlay("lbl5"); } where 30 is the frame for lbl2 and mc is the name of your movie clip If you are coding in AS2 the condition changes a bit in current frame: if (mc._currentframe == 30) { mc.gotoAndPlay("lbl5"); } Quote:
|
|
#3
|
|||
|
|||
|
I'm coding in AS3
Well, that sounds straightforward. I will try it as soon as I can. Thanks |
|
#4
|
|||
|
|||
|
Did you get it to work?
Quote:
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Flash Development > Play one label, then jump to another |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|