c’mon. This can’t be that hard of a question. Anybody home?
Thank you.
I’m using youe awesome counter in one of mine wordpage sites.
www.aranasfans.se, but I can only get it working in IE, not in Firefox, Chrome, Safari or Opera. Why? (I’ve tried other flash applications and they are working fine.
Thanks in advance Putte
MANY THANKS !!!!!!!!!! It works in all browsers now.
I used your code instead of my crappy one
.
I’m very happy now, you saved a lot of thinking for me.
Cheers Patrik
A year ago, you posted how to create a dynamic XML file with PHP (pasted below from your post).
If I use this approach, the timer hangs and won’t run. However, if I view the output of the PHP file and save as a static XML , it works fine. Seems to be a problem with the dynamic XML output from PHP .
Alternately, I tried to skip the XML altogether and define the variables like this:
var flashvars = {};
flashvars.EndYear = “2020”, flashvars.EndMonth = “1”, . . etc.
This approach also causes the timer to hang and not run.
Seems like the only way I can get it to run is to use the static XML for the flashvars.
Any idea how I can use dynamic flashvars on the fly?
thanks
<?php header(“Content-Type: text/xml”); echo ’<?xml version=”1.0” encoding=”utf-8”?> ’ ?>Here’s the PHP config file (below), using the code you provided a few pages back as a guide, with one dynamic variable, $year.
Here’s the URL that calls the timer:
http://www.forexprofitmultiplier.com/countdown.php?year=2011&month=01&day=20&hour=14&min=45&m=Go
I pass in other date info, but I’m just trying to use the year to test. That works fine.
However, when I try to use any other variable, it doesn’t work.
Here’s an example trying to use just $month:
http://www.forexprofitmultiplier.com/countdown2.php?year=2011&month=02&day=20&hour=14&min=45&m=Go
This uses a different config file, which is the same as below, but has this at the top:
<?php header(“Content-Type: text/xml”); echo ’<?xml version=”1.0” encoding=”utf-8”?> <countdown endYear=”2012” endMonth=”’ . $month .’”
So even though I send in 02 as the month which is a month away, the timer ‘expires’ and displays the message when it should be counting down.
thanks, Greg
<?php header(“Content-Type: text/xml”); echo ’<?xml version=”1.0” encoding=”utf-8”?> ‘ ?>Does the first example link work when you use multiple variables? The config file in the first example is an XML file while the second is a PHP file – I’m wondering if the problem lies somewhere in that (maybe that ‘header’ declaration isn’t working).
Also, can you try setting the variables without the leading zero – i.e. ‘&month=2’ instead of ‘&month=02’
I know that you posted the instructions on how to hard code the variables into the FLA rather than have them loaded via XML … but if you consider to make a version that only has the hard coded variables, I’ll buy instantly…
I would like to have this counter loop so that every week the countdown resets to an all day sale on sunday – meaning teh clocks starts the countdown on sunday midnight and goes down till saturday midnight and then resets again on sunday at midnight, how can i implement such a loop?
Yes, it does support PHP , please provide the appropriate file…thanks in advance…
Hello i just ordered countdown_flip 1.1
I was hoping that you may show me how to change the script so that it is a count up clock rather than a countdown. We want to put in a date, say 1/1/2011 and have it count up every day to show how long since that date. This count up will go up every day and there is no end date.
I would really appreciate this support many thanks.
Can this countdown use an absolute date/time for the countdown?
For example, if I have an event starting on 5th October 2012 at 14:00 UTC -7, the event is the same number of days/hrs/mins/secs away for everyone in the world.
So I’d like to provide the actual number of days/hrs/mins to start counting down from. Not a target date/time.
That way I could have the XML config file as a server-parsed PHP script and use the server’s time as the base rather than the user’s system time.
Is that possible? If so, you’ll get a purchase from me!
Cheers, B
Hi – there are settings in the XML file which will adjust the counter display based on the user’s system-set time-zone. So if your event is happening in a UTC -7 time-zone you’d set the ‘timeZoneGMT’ param in the XML file to ‘-7’. When I view the countdown in Toronto (Eastern Daylight Time or GMT -4 hours) the counter would add 3 hours to the target date to make up for the time difference (I think).
Is this what you you need?
Well not really.
The user’s timezone shouldn’t make any difference as to how far in the future an event is. If an event starts in 1 hour and 7 minutes, it starts in 1 hour and 7 minutes for everyone all over the world, regardless of their timezones.
So to get around that, I’m looking to pass the actual number of days/hours/mins to start counting down from. So the countdown script doesn’t have to do any maths but just start counting down the days/hours/mins given to it. Is that possible? Or will it be possible in the future?
The other customisation looks great BTW 
Cheers, B
I have one event scheduled to start/end 3 times, over a 3 months period.
Can the .XLM file be set to trigger the start/end date of each event period automatically?
Is it possible to scale the countdown clock inside of flash?
I have a Flash banner that already has a space allocated for the countdown banner that is much smaller. When I save the countdown clock as a movie clip and place it, it gives me a height and width of 1 and will not let me change it.
Any ideas?
Hey,
Just one question before purchasing ,
.How Do I Add a banner and add the countdown below it (in an swf file) ??
Please let me know , I Just need to know this before purchasing .
Thanks alot, This is a great File.
Have a good day !.
Is is possible to hide countdown div after rich zero? Not show message or leaf zero on it. I need it to hide at all.
I’m not sure – this is probably possible with JavaScript but I’m no expert…
I think you’d set up an end function in Flash that runs when the counter reaches zero – the function could then call a JavaScript function in your HTML page that hides the div containing the SWF (?)
i want to buy this asap all i need to know is…. how easy isit to add to my site and after the timer has counted down can i have a mesage that appears ??????
I want to set up a timer that just counts down 5 minutes. Do I have to set a month and year? I just want a simple 5 minutes count down.

Hi – you can scale the SWF up or down when you embed with SWFObject. In the ‘index.html’ file included in the Zip file, you’ll see:
swfobject.embedSWF(“countdown_flip_4days.swf”, “flashcontent”, “776”, “148”, “8.0.0”, false, flashvars, params, attributes);
The 776 is the width in pixels and 148 is the height – you can adjust the scaling here, but if you change one dimension, you should change the other one proportionally…so if you increase the width from 776 to 970 (125%), you’d need to increase the height from 148 to 185 pixels.