Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  1. Welcome to the 12ozProphet Forum...
    You are currently logged out and viewing our forum as a guest which only allows limited access to our discussions, photos and other forum features. If you are a 12ozProphet Member please login to get the full experience.

    If you are not a 12ozProphet Member, please take a moment to register to gain full access to our website and all of its features. As a 12ozProphet Member you will be able to post comments, start discussions, communicate privately with other members and access members-only content. Registration is fast, simple and free, so join today and be a part of the largest and longest running Graffiti, Art, Style & Culture forum online.

    Please note, if you are a 12ozProphet Member and are locked out of your account, you can recover your account using the 'lost password' link in the login form. If you no longer have access to the email you registered with, please email us at info@12ozprophet.com and we'll help you recover your account. Welcome to the 12ozProphet Forum (and don't forget to follow @12ozprophet in Instagram)!

countdown (flash.dev. help)

Discussion in 'Channel Zero' started by Nic Thamaire, Apr 15, 2004.

  1. Nic Thamaire

    Nic Thamaire Elite Member

    Joined: Apr 20, 2000 Messages: 2,921 Likes Received: 9
    Im trying to set a countdown in second for some website,got any hint?
     
  2. 2 blaazed

    2 blaazed New Jack

    Joined: Jun 28, 2002 Messages: 0 Likes Received: 3
  3. heavyLox

    heavyLox Veteran Member

    Joined: Feb 2, 2002 Messages: 7,196 Likes Received: 17
    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();
     
  4. 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.
     
  5. heavyLox

    heavyLox Veteran Member

    Joined: Feb 2, 2002 Messages: 7,196 Likes Received: 17
    mams are you getting code nasty these days?
     
  6. Dirty_habiT

    Dirty_habiT Dirty Dozen Crew

    Joined: Mar 8, 2001 Messages: 18,058 Likes Received: 48
    I wouldn't even say "these days".... Mamerro's been real keen on that programming stuff since I've "known" him.... years.
     
  7. Nic Thamaire

    Nic Thamaire Elite Member

    Joined: Apr 20, 2000 Messages: 2,921 Likes Received: 9
    this is a countdown that will display the time left since the beginning of an event in april of next year.i want it in second,and it will be visible on the first page of this site..
    thanx for your help yall..
     
Top