Jump to content

timer


ehud35new

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...