A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: timer counting down :(

  1. #1

    timer counting down :(

    could someone tell me briefly how to make a dynamic text box to show a timer counting down from 30 please? i am on a college computer and they don't have winzip to extract movies from flashkit

    greatly appreciated in advance
    Keep sweet
    Smebb

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    in case you just want the code:
    Code:
    _root.onEnterFrame = function() {
    	time = Math.floor(getTimer()/1000);
    	displayTime = 30-time;
    	if (displayTime<=0) {
    		delete _root.onEnterFrame;
    	}
    };
    where dispayTime is the var you'll use in your text box
    Attached Files Attached Files
    Last edited by nunomira; 11-20-2002 at 04:07 PM.

  3. #3

    YAY! :D

    i would hug you if i knew you! ty ever so much!
    Keep sweet
    Smebb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center