Jump to content

Recommended Posts

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...