Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2009
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Need a stopwatch type timer Please help!

    Hi, I need this quite urgently if anyone can help!

    I've tried all day but my limited knowledge has got me nowhere, and I need this done for tomorrow morning!

    Basically, I've got game for kids where you click the right coloured circle. Its not really a game as I'm writing my dissertation on designing interfaces for kids. You didn't ned to know that. Basically, I've made a game where you click the right coloured circle to go to the next level, and what I need is a timer that starts when you click "play" and ends when the last circle is clicked. This is so they can see how long it has taken them.

    I have uploaded the fla file here http://www.yousendit.com/transfer.ph...NkdsUi9IRGc9PQ if you could take a look, it's not a big file.

    I have searched for a while and Ive managed to make counters but only ones that start when the movie loads and I don't know how to stop them. My action script is pathetic! If you could help, or direct me to a tutorial, it would be much appreciated.

    Thanks, SPZ

  • #2
    New Coder
    Join Date
    Jun 2009
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi again,

    I've got it working now so that the counter starts when you press play. The AS on the first frame is :

    ----------------------

    stop();

    clock.text="0";

    function countUp() {
    clock.text++
    }

    ----------------------

    and on the button it's

    ----------------------

    on (release){
    gotoAndPlay ("play");
    setInterval(_root.countUp, 1000);
    }

    ----------------------


    I just need some way of stopping it when the last button is pressed. I've tried all the ways I can think of but I really don't know what I'm doing. Please help I need this for tomorrow!


  •  

    Posting Permissions

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