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 12oz Elite Member

    Joined:
    Apr 20, 2000
    Messages:
    2,921

    countdown (flash.dev. help)

    Discussion started by Nic Thamaire - Apr 15, 2004

    Im trying to set a countdown in second for some website,got any hint?
     
    Nic Thamaire - Rank: 12oz Elite Member - Messages:
    2,921
    - Joined:
    Apr 20, 2000
  2. 2 blaazed

    2 blaazed New Jack

    Joined:
    Jun 28, 2002
    Messages:
    0

    2 blaazed - Replied Apr 15, 2004

    [​IMG]
     
    2 blaazed - Rank: New Jack - Messages:
    0
    - Joined:
    Jun 28, 2002
  3. heavyLox

    heavyLox 12oz Veteran Member

    Joined:
    Feb 2, 2002
    Messages:
    7,196

    heavyLox - Replied Apr 15, 2004

    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();
     
    heavyLox - Rank: 12oz Veteran Member - Messages:
    7,196
    - Joined:
    Feb 2, 2002
  4. imported_El Mamerro - Replied Apr 16, 2004

    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 12oz Veteran Member

    Joined:
    Feb 2, 2002
    Messages:
    7,196

    heavyLox - Replied Apr 16, 2004

    mams are you getting code nasty these days?
     
    heavyLox - Rank: 12oz Veteran Member - Messages:
    7,196
    - Joined:
    Feb 2, 2002
  6. Dirty_habiT

    Dirty_habiT Dirty Dozen Crew

    Joined:
    Mar 8, 2001
    Messages:
    18,054

    Dirty_habiT - Replied Apr 16, 2004

    I wouldn't even say "these days".... Mamerro's been real keen on that programming stuff since I've "known" him.... years.
     
    Dirty_habiT - Rank: Dirty Dozen Crew - Messages:
    18,054
    - Joined:
    Mar 8, 2001
  7. Nic Thamaire

    Nic Thamaire 12oz Elite Member

    Joined:
    Apr 20, 2000
    Messages:
    2,921

    Nic Thamaire - Replied Apr 16, 2004

    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..
     
    Nic Thamaire - Rank: 12oz Elite Member - Messages:
    2,921
    - Joined:
    Apr 20, 2000