A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: !!!!!TIMERFLA!!!!!!!

  1. #1
    Senior Member Jamez Brown's Avatar
    Join Date
    Mar 2002
    Posts
    419
    I am in serious need of help!! Please can someone help me out by directing or posting for me a simple .fla that is a timer that counts to 0. Then goes to frame 2. I'm sorry 4 this question. I've looked everwere and nothing worx! any help would b great!

  2. #2
    Flash Developer on a break
    Join Date
    Jun 2001
    Location
    The Netherlands
    Posts
    1,370
    Just make a mc.

    Put for example a '3' on the first frame. A '2' on the 12th, a '1' on the 24th and a '0' on the 36th frame(in case of a 12fps movie)
    Now put a _root.gotoAndPlay(1); on frame 36.

    ..

  3. #3
    Senior Member
    Join Date
    Jan 2002
    Posts
    167
    I worked out a nice solution for this and will post it when I get home from work.

  4. #4
    Senior Member
    Join Date
    Jan 2002
    Posts
    167
    Frame One yoou have one movie clip and one dynamic text box.
    Your dynamic text box is named countDown this code goes on your movieclip.
    happy flashing

    onClipEvent(load) {
    //This tells the timeline above your movieclip to stop
    _parent.stop()

    }
    onClipEvent(enterFrame) {


    elapsed_timer = Math.ceil(getTimer()/1000)
    _root.countDown = 11 - elapsed_timer;

    //This code goes on a movieclip on the frame in the maintimeline you want to pause
    onClipEvent(load) {
    //This tells the timeline above your movieclip to stop
    _parent.stop()
    //This creates a variable named ini_timer and converts it to seconds
    //ini_timer = Math.ceil(getTimer()/1000)
    }
    onClipEvent(enterFrame) {


    elapsed_timer = Math.ceil(getTimer()/1000)
    _root.countDown = 11 - elapsed_timer;



    }
    [Edited by mfweiland on 04-18-2002 at 12:27 AM]

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