Re: [Flashcoders] coding a world clock

2007-09-07 Thread Corban Baxter
nice move john much appreciated! On 9/6/07, John VanHorn [EMAIL PROTECTED] wrote: yes, the flash Date object provides all the necessary properties to calculate the time for different time zones, but it still wont be accurate if the user's clock is off. for more accuracy, youll need to have

RE: [Flashcoders] coding a world clock

2007-09-07 Thread Keith Reinfeld
Thanks again, Marcelo! The DST Policies scheme works wonderfully. Brilliant! I'm sure I read somewhere that you need to delete the Date object once you are done with it. Otherwise it will persist in memory. Have you noticed any memory leaks associated with these calcs? Regards, -Keith

Re: [Flashcoders] coding a world clock

2007-09-06 Thread Corban Baxter
hey keith or any of you guys have you had a chance to look any further into this. I have put it to the side since the time i posted but I am going to try and get back at it very quickly. On 9/3/07, Marcelo Volmaro [EMAIL PROTECTED] wrote: Something like this? private static var

Re: [Flashcoders] coding a world clock

2007-09-06 Thread Jim Berkey
10:17 AM Subject: Re: [Flashcoders] coding a world clock hey keith or any of you guys have you had a chance to look any further into this. I have put it to the side since the time i posted but I am going to try and get back at it very quickly. On 9/3/07, Marcelo Volmaro [EMAIL PROTECTED] wrote

RE: [Flashcoders] coding a world clock

2007-09-06 Thread Keith Reinfeld
Hi Corban, Yes, I've been working on mine. I really want to thank Marcelo for the timezones array. Very helpful! Where did that come from? I have worked out a mechanism for applying Daylight Savings Time rules. Now all I need is the data, by location, to pass in. Note to Jim Berkey: First,

Re: [Flashcoders] coding a world clock

2007-09-06 Thread Jim Berkey
Note to Jim Berkey: First, thank you for the link. Nice touch with the iconic location graphics. Second, I'm getting a 404 for the worldclock source file. Just FYI. Regards, -Keith http://keithreinfeld.home.comcast.net Sorry blush had to uncloak it in Dreamweaver before I uploaded. Should be

RE: [Flashcoders] coding a world clock

2007-09-06 Thread Keith Reinfeld
Hi Jim, Thanks again! Is it just me (Flash 8) or does anybody else get the 'Unexpected File Format' error? What version of Flash was your worldclock.fla created in? Regards, -Keith http://keithreinfeld.home.comcast.net ___

Re: [Flashcoders] coding a world clock

2007-09-06 Thread Jim Berkey
] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, September 06, 2007 12:36 PM Subject: RE: [Flashcoders] coding a world clock Hi Jim, Thanks again! Is it just me (Flash 8) or does anybody else get the 'Unexpected File Format' error? What version of Flash was your worldclock.fla created

Re: [Flashcoders] coding a world clock

2007-09-06 Thread Marcelo Volmaro
I took that data from various sources. I'm using that for my own clock too, and also have a function that, taking a position (first, second, third, etc), a month and day can calculate the real date when a DST occurs (for example, you feed first Friday of may or last Monday of December and

Re: [Flashcoders] coding a world clock

2007-09-06 Thread John VanHorn
yes, the flash Date object provides all the necessary properties to calculate the time for different time zones, but it still wont be accurate if the user's clock is off. for more accuracy, youll need to have the time from the server. this should be simple to do with any server side language. in

RE: [Flashcoders] coding a world clock

2007-09-03 Thread Keith Reinfeld
Hi, This thread inspired me to prototype my own world clock. And, yes the Date object does provide the means to convert local time to remote time IF you have the remote location's GMT offset value to plug in. I think this is the data Corban was asking after. http://wwp.greenwichmeantime.com/ and

Re: [Flashcoders] coding a world clock

2007-09-03 Thread Marcelo Volmaro
Something like this? private static var timeZones:Array = [ [-1, Azores,Brazil Atlantic Islands,Cape Verde,Greenland Scoresbysun,Guinea Bissau], [-2, Antarctica], [-3, Argentina,Brazil East, French Guiana, Greenland, Guyana,St Pierre Miquelon,Suriname,Uruguay],

[Flashcoders] coding a world clock

2007-08-31 Thread Corban Baxter
Just wanted to know where I could get the data to code world clocks in flash. Since flash works off the system clock am I able to get the time zone or do I need to use a web service that is available to make this happen? -- Corban Baxter http://www.projectx4.com

RE: [Flashcoders] coding a world clock

2007-08-31 Thread Paul Venton
Have a gander at the Date object ... it's all there. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: 31 August 2007 19:22 To: Flashcoders mailing list Subject: [Flashcoders] coding a world clock Just wanted to know where I could get