onClipEvent(enterFrame){ if (_root.score == 10) { gotoAndStop(2); } }
I... I. I just dont understand, i bet its sooo simple but i just cant get it. For those who dont what i'm trying to do. So basicly when my dynamic textbox (score) = 10 go to and stop at frame 2. Some one please help this noob.
_________________ i can do the 100 meter run in 11.9 secs i can do the 30 meter run in 4.43 secs and last but not least im the fastest runner in my year
Thu Nov 05, 2009 11:49 am
Huntragon
Joined: Mon Aug 11, 2008 12:33 pm Posts: 26
Re: why does this not work [request]
Did you put
Code:
stop();
in the first frame?
Because if you didnt the movie keep cyclying through the diferent frames.
Thu Nov 05, 2009 2:42 pm
bowser guy
Joined: Tue Oct 28, 2008 2:37 pm Posts: 477
Re: why does this not work [request]
Ye iv'e done that, ive tryed alot of codes to try and get this to work but it just keeps counting up. edit-sorry about this. I think i might of cracked it
_________________ i can do the 100 meter run in 11.9 secs i can do the 30 meter run in 4.43 secs and last but not least im the fastest runner in my year
Thu Nov 05, 2009 3:08 pm
x2i
Joined: Mon Aug 11, 2008 2:09 pm Posts: 217 Location: England lol
Re: why does this not work [request]
If you wish the movie clip that the event is attached to to go to frame two then your code is correct. If you wish the main timeline to jump to the second frame then use:
Code:
onClipEvent(enterFrame){ if (_root.score == 10) { _root.gotoAndStop(2); } }
_________________ Moderator of the Flash Tutorials section If you need help with Flash then head on over! Sonic and Knuckles Code Giveaway - Click here for more details and to enter - http://u.nu/74463
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum