Jump to content

countdown (flash.dev. help)


Nic Thamaire

Recommended Posts

This forum is supported by the 12ozProphet Shop, so go buy a shirt and help support!
This forum is brought to you by the 12ozProphet Shop.
This forum is brought to you by the 12oz Shop.

this is from the top of my head so it might need a tweak.

 

 

 

myTimer=new Date();

secs=myTimer.getSeconds;

 

elapsed=15;

 

// depending on how you want the countdown to start//

 

 

function time_it(){

this.onEnterFrame=function(){

if(sec>elapsed){

//countdown done

}

}

 

}

 

time_it();

Link to comment
Share on other sites

Guest imported_El Mamerro

What exactly is it you need to do? Show a countdown displaying the numbers, or just count silently?

 

You can build something with the getTimer() or setInterval() functions, or you can ghetto it out and place a keyframe every 12 frames (in a 12 fps movie), but unless I know what you're trying to do I can't say specifically.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...