Countdown to Site Launch Timer

An easy to use, XML driven, countdown to site launch Flash timer.

Please Share!

It takes hours to produce some of these designs. Please share them.

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Comments

  1. Megg June 5, 2010

    Hey Oscar, I wanted to add something on top of it, however, when I export, it stops ticking and just shows 00:00:00:00


  2. Oscar Rabasa June 5, 2010

    Make sure the XML is still in the same folder as the .swf file.
    Hope this helps!


  3. Chris June 7, 2010

    I would like to have this counter count UP from a date to infinity, can you point me in the right direction? Much appreciated.


  4. Nick June 9, 2010

    Hi Oscar
    I have the same issue than Megg.

    After exporting the .fla file to an .swf file I become a Compiler-Error.
    Clock.as, Line 2 1046 – Typ not found.
    After that, the clock just shows zeros 00 insteat of counting.

    I am using Flash CS3 Professional

    Can you help ?

    P.S. the .xml is in the same folder than the .swf file


  5. Oscar Rabasa June 9, 2010

    Not quite sure how you are getting that error, especially as line 2 is blank in Clock.as
    Here’s a list of the common fixes:

    1) Make sure come folder is in the same directory as the .fla when compiling the .swf
    2) Make sure the link to the targetDate.xml is correct in the Main.as file

    If these don’t work you could uncomment these line and put the target date in here:

    //var targetDate:Date = new Date();
    //targetDate.setTime( Date.UTC(2011, 4, 28, 20, 00) );
    //clock.set(targetDate);

    PS could you send the the entire error report?
    Thanks


  6. Oscar Rabasa June 9, 2010

    @Chris
    You would been to change the update() function in the clock.as file.
    Instead of getting the target time and minus it from the current time, you would need to increment it by +1000 (1 second)
    You would then need to strip out all the XML and target date info.
    Hope this helps.


  7. ngnda Phiri August 5, 2010

    This may be the dumbest question yet, but how do add this app to my, I am using basic html and style sheets, what line of code should I add to my html code.


  8. ron December 14, 2010

    Hi Oscar,
    I can’t get the countdown working when i put the files in my server.
    In local everything’s working.
    Thx for your help !!!

    Ronny


  9. Oscar Rabasa December 15, 2010

    Make sure the URL to the XML file is correct.


  10. Hi Oscar April 9, 2011

    Where do I find installation instructions for this flash counter please.

    I edited the xml page but I don’t see anything atr all that gives directions.

    Thanks for your help
    Rob Nunes


  11. McNeil April 17, 2011

    In Clock.as line 2 Shows an error…

    1046:Type was not found or was not a compile-time constant: TextField.
    Source: import flash.display.MovieClip;

    I put the targetDate.xml and SWF file in the same location BUT it now shows 00:00:…only, why is it TextField???

    @MarcusNeil on Twitter


  12. McNeil April 17, 2011

    Solved!

    ALL you have to do is to place import flash.text.TextField; inside the clock.as because like you, you must be using Flash CS3! Enjoy!


  13. Clare May 25, 2011

    Hi, I’ve just tried to download this zip and it says the zip file is invalid or corrupted?
    Thanks, Clare


  14. Oscar Rabasa June 8, 2011

    @Clare, Thanks for letting me know. I have uploaded it again. Regards.


Leave a Comment