ehud35new 0 Posted December 7, 2006 Report 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 ? Quote Link to post Share on other sites
kewley 0 Posted December 8, 2006 Report 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); Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.