ActionScript 2.0 :: CS3 : How To Use GetTimezoneOffset()

Aug 29, 2010

how to use getTimezoneOffset() ?I have a working flash clock, but how can I change the timezone?by the way, i want to show another timezone at the same time show my timezone.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Countdown With GetTimezoneOffset For CST

Jan 21, 2008

how to create a countdown timer using AS2. It works great but now I need to add more actionscript. Our company is releasing a brand launch in Chicago (CST) so I want the countdown timer to be the same for everyone's computer, even if they are in NY for example. I did a trace for the offset and it returned -6hr (360min). How do I add the offset. I looked everywhere but I could not find it. I want to grab the time from the user's computer and then add the getTimezoneOffset and subtract -6hr or 360min right?

Also, I just thought of this - when the clock hits 0 or a negative value... I want to tell my flash piece to go to the next frame so they don't see the clock counting backwards. :)

this.onEnterFrame = function() {
var today:Date = new Date();
trace(today.getTimezoneOffset());
var currentYear = today.getFullYear();

[Code].....

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved