A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [help] Timer Question, Is there another way?

Threaded View

  1. #1
    Senior Member Gloo pot's Avatar
    Join Date
    Aug 2005
    Location
    Australia Mate!
    Posts
    874

    [help] Timer Question, Is there another way?

    I am creating a timer using a dynamic text boxs, is there a way to tell my timer to plus 1 every second with out having to refer the frame rate?

    i was using the following untill i realised it was affected by frame rate...

    on the frame one i have
    Code:
    _root.mils = 0;
    _root.secs = 0;
    and in a empty MC i have the following controls
    Code:
    onClipEvent (enterFrame) {
                 _root.sec.text = _root.secs;
                 _root.mil.text = _root.mils
    }
    onClipEvent (enterFrame) {
    	_root.mils+= 1;
    }
    onClipEvent (enterFrame) {
    	if (_root.mils== 10) {
    		_root.mils= 0;
    		_root.secs += 1;
    	}
    }
    Can i do the following without having to worry about the frame rate

    [EDIT] : I also have 2 Dynamic text boxes, sec and mil...
    Last edited by Gloo pot; 10-12-2005 at 02:44 AM.
    92.7 Fresh FM for all your South Aussies - Doof Doof music FTW people!

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