ehud35new Posted December 7, 2006 Share Posted December 7, 2006 I want to creat a Timer (count down) and when it reach to 0 it is going to 2nd frame.....this is what i wroteonClipEvent (load) {var num:Number = 5;var fps:Number = 12;var militimer:Number = num*fps;}onClipEvent (enterFrame) {if (militimer>0) {militimer--;} else {gotoAndPlay(2);}_root.timer.text = Math.round(militimer/fps);}the timer is working but when it is reach to 0 ..it is not doing nay thing ....?why is that ?any ideas for other scripts ? Link to comment Share on other sites More sharing options...
kewley Posted December 8, 2006 Share Posted December 8, 2006 Do you want the Movie Clip the script is on to go to the 2nd frame, or the main time line?If the answear is the main timeline, the you need to change: gotoAndPlay(2);to:_root.gotoAndPlay(2); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now