bolszo
08 Jan 2009, 06:54 AM
Hi,
I'm trying to create a clock which will show time from a given time zone. In this case I'm using the .getUTC command. I have a problem though as it is working in adobe flash when I do the "Test Movie" option but later after exporting it shows time from my computer. Can anyone help me please.
Maybe there is a different way to do it?
Thanks in advance.
This is the code I'm using:
time=new Date(); // time object
minutes = time.getUTCMinutes()
hours = time.getUTCHours()
hours = hours +(minutes/60);
hours = hours +1;
minutes = minutes*6; // calculating minutes
hours = hours*30; // calculating hours
minute_hand._rotation=minutes; // giving rotation property
hour_hand._rotation=hours; // giving rotation property
I'm trying to create a clock which will show time from a given time zone. In this case I'm using the .getUTC command. I have a problem though as it is working in adobe flash when I do the "Test Movie" option but later after exporting it shows time from my computer. Can anyone help me please.
Maybe there is a different way to do it?
Thanks in advance.
This is the code I'm using:
time=new Date(); // time object
minutes = time.getUTCMinutes()
hours = time.getUTCHours()
hours = hours +(minutes/60);
hours = hours +1;
minutes = minutes*6; // calculating minutes
hours = hours*30; // calculating hours
minute_hand._rotation=minutes; // giving rotation property
hour_hand._rotation=hours; // giving rotation property