RE: [Flashcoders] UK time clock

2009-04-22 Thread Keith Reinfeld
> You can check if the locale takes DST into account by compare the > offsets of a winter day with a summer day. If they are the same the > locale doesn't care about DST. That is true. More precisely you can compare the timezone offset of January 1st to July 1st. If they are equal DST is not

Re: [Flashcoders] UK time clock

2009-04-22 Thread Hans Wichman
or use something like this: *http://www.earthtools.org/timezone-1.1/39.96/5.6250* On Wed, Apr 22, 2009 at 10:29 PM, Weyert de Boer wrote: > You can check if the locale takes DST into account by compare the offsets > of a winter day with a su

Re: [Flashcoders] UK time clock

2009-04-22 Thread Weyert de Boer
You can check if the locale takes DST into account by compare the offsets of a winter day with a summer day. If they are the same the locale doesn't care about DST. If not, I would need to fix my alarm clock ;) On 22/04/2009, at 10:12 PM, Keith Reinfeld wrote: Pedro, To calculate the time

RE: [Flashcoders] UK time clock

2009-04-22 Thread Keith Reinfeld
Pedro, To calculate the time elsewhere you have to factor-in the local machine's timezone offset value. I worked out the following for my World Clock last year: // Local Time var lDate:Date = new Date(); // Elsewhere Time: London Standard Time: 0, DST: 1 var utcH:Number = 1; var utcM:Nu

Re: [Flashcoders] UK time clock

2009-04-22 Thread Pedro Kostelec
> > THanks. I'll check getTimezonOffset(). > I thought it was going to be harder than that. Pedro Kostelec ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] UK time clock

2009-04-22 Thread Nate Beck
Oh... also... to answer the original post. You'll want to do something like this: 1) Figure out what Timezone the current user's computer is set to. myDate.getTimezoneOffset(); 2) The timezoneOffset is... "The minutes you need to add to the computer's local time value to equal UTC. If your comput

Re: [Flashcoders] UK time clock

2009-04-22 Thread Weyert de Boer
Well, you can use get getTimezonOffset()-method which is the minutes different from the UTC/GMT time For example, here in The Netherlands the offset should be 120mins. This means that the Date-object will always return your so called zone-related time in Flash. After that you can remove the o

Re: [Flashcoders] UK time clock

2009-04-22 Thread Nate Beck
Timezones aren't supported in the Flash Player... you only have UTC time... and then it derives your "local time" based on your computers timezone offset. I've talked about this quite a bit on FlexCoders (second half of the conversation): http://www.nabble.com/flex-date-and-timezone-td21695609.htm

Re: [Flashcoders] loading images in a circle format..

2009-04-22 Thread Rodrigo Augusto Guerra
hi, yes it's a carousel, but I avoided naming because I wasn't very sure if this is the name for this kind of thing. anyway, thanks for the tips... will check the point.polar and gotoandlearn. thanks! rodrigo - Original Message - From: Matt Gitchell To: Flash Coders List

RE: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Merrill, Jason
>> Hi Merill, It's Jason, and Merrill has two r's. :) Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___

Re: [Flashcoders] UK time clock

2009-04-22 Thread Pedro Kostelec
OH, there is a way to bring out zone related time in Flash? I only knew the way, that takes the time from the local computer. How'd you do it? Any tutorial or script? On Wed, Apr 22, 2009 at 8:31 PM, Weyert de Boer wrote: > Ain't that the same as the UTC time? As far as I know UTC time is GMT wh

Re: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Weyert de Boer
Hi Merill, Yes, just some more information in the footer so that they know you can find the information at that link how to unsubscribe from the mailing list. Yours, Weyert de Boer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com htt

RE: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Merrill, Jason
>> Maybe the admin should include a little line in the footer about how >>to subscribe (Want to subscribe? What would be the purpose of adding "how to subscribe" information if 1) the point is that some people don't understand how to UNsubscribe, and 2) they would have already been subscribed if

Re: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Matt S.
Given the frequency of "please unsubcribe me" emails, it should probably be in 20pt Bold, and blinking too. ;) .m On Wed, Apr 22, 2009 at 2:33 PM, Merrill, Jason wrote: > What would be the purpose of adding "how to subscribe" information if 1) > the point is that some people don't understand ho

Re: [Flashcoders] UK time clock

2009-04-22 Thread Weyert de Boer
Ain't that the same as the UTC time? As far as I know UTC time is GMT which is the UK time. Of course, you need to take the daylight saving into account. Winter: UTC+0 (UTC=GMT) Summer: UTC+1 (GMT+1) On Apr 22, 2009, at 8:16 PM, Pedro Kostelec wrote: Hello Is there a way to create a clock

[Flashcoders] UK time clock

2009-04-22 Thread Pedro Kostelec
Hello Is there a way to create a clock that would show UK time, regardless in which time zone you are? Thanks, Pedro Kostelec ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] loading images in a circle format..

2009-04-22 Thread Matt Gitchell
Point.polar() will give you an X/Y value based on the degree (in rads) and the distance from the center of the circle. On Wed, Apr 22, 2009 at 10:36 AM, whispers wrote: > Seems like a carousel project to me? > > Have you checked out www.gotoandlearn.com > > There are many parameters > > -Ori

Re: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Weyert de Boer
Maybe the admin should include a little line in the footer about how to subscribe (Want to subscribe? Find mor einfo at...) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] loading images in a circle format..

2009-04-22 Thread whispers
Seems like a carousel project to me? Have you checked out www.gotoandlearn.com There are many parameters -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Rodrigo Augusto Guerra Sent: Wednesday, April 22,

RE: [Flashcoders] loading images in a circle format..

2009-04-22 Thread Merrill, Jason
Go to www.gotoandlearn.com and find the tutorial, "Creating 3D Carousels". Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___

[Flashcoders] loading images in a circle format..

2009-04-22 Thread Rodrigo Augusto Guerra
hi all... I got a request to load some images in a circle format and once you click one image, it goes to the front. the final layout will be like this: www.alumni.org.br/tmp/rodrigo/modelo.gif my doubt is, how to divide the circle in X equally pieces the logic I'm thinking: divide the ci

RE: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Kerry Thompson
> Please, remove me from the list. I'm replying to the list, as well as to the OP, as an FYI for new or inexperienced members. If you understand how mailing lists work, you need read no further. We have no power to remove you from the list--we're just subscribers like you. Unless the list admin h

[Flashcoders] Flash game testing companies? QA

2009-04-22 Thread Paul Steven
My clients QA department have become involved with a game I am developing and would like the game to be tested by an external testing company. Can anyone recommend a company (UK ideally) that offers such a service? I guess I have been lucky in the past as no other client has ever requested this kin

RE: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread yrussom
ling list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders __ Information from ESET NOD32 Antivirus, version of virus signature database 4027 (20090422) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Inform

Re: [Flashcoders] cross dissove in slideshow

2009-04-22 Thread Pedro Kostelec
OK, i did it anyway and it works fine. On Wed, Apr 22, 2009 at 1:35 AM, Paul Andrews wrote: > I don't think it gets much more straightforward than that. > > - Original Message - From: "Pedro Kostelec" > To: "Flash Coders List" > Sent: Tuesday, April 21, 2009 9:42 PM > Subject: [Flashco

RE: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Merrill, Jason
>> No benefit at all unless he needs to have his website redesigned That isn't quite true. Benefits to migrating it to AS3 would be increased performance with the AVM2, as well as future maintenance ease given you'll be taking advantage of many of the features AS3 has to offer over AS2. You'd li

RE: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Paul Steven
Hmm nope but it is not a million miles away from me here in Somerset. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike Sent: 22 April 2009 12:41 To: Flash Coders List Subject: Re: [Flashcoders] Feas

Re: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Fabio Pinatti
Hello, yeah, that's why I was fighting with myself to find a good reason to convert it. There's no logical reasons, the only one I really find is maintenance or redesign. Your help was precious, thanks! Fabio On Wed, Apr 22, 2009 at 12:35 PM, Kerry Thompson wrote: > Ian Thomas wrote: > > > I t

Re: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Weyert de Boer
Yes, last week I have converted a Flash project to AS3 because it was all framescripts so I have reworked it to use classes. Much easier to fix bugs and other issues now. :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chatty

Re: [Flashcoders] Loading string data in a file from a server

2009-04-22 Thread Sidney de Koning
Then 'f' is the reference to the playlist.pls right? That one i can than pass through to my PLS reader? This really helped me alot! May I refer you to this image: http://www.aperturaphoto.com/blog/wp-content/uploads/2008/03/you-rock-you-rule.bmp Thanks! Sid On Apr 22, 2009, at 5:25 PM, Muzak

RE: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Kerry Thompson
Ian Thomas wrote: > I think that was Paul, not me. Right you are. Sorry, Paul. > But as it happens, I agree with Paul, too. :-D Actually, we all three seem to pretty much agree. I'm just wordier than you :-P Cordially, Kerry Thompson ___ Flashcod

Re: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Ian Thomas
On Wed, Apr 22, 2009 at 4:17 PM, Kerry Thompson wrote: > Fabio Pinatti wrote: > >> A question I was wondering here. A client of mine has a website built with >> as2. And I explained him I work now with as3, but he asked what the real >> benefits for him, to convert his project to as3. >> >> I woul

Re: [Flashcoders] Loading string data in a file from a server

2009-04-22 Thread Muzak
Well that was just an example :) Here's how to do it without the save file dialog: private function plsLoaded(evt:Event):void { trace("Application ::: plsLoaded"); var value:String = evt.currentTarget.data; trace(value); var f:File = File.desktopDirectory; f.url += "/playlist.pl

RE: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Kerry Thompson
Fabio Pinatti wrote: > A question I was wondering here. A client of mine has a website built with > as2. And I explained him I work now with as3, but he asked what the real > benefits for him, to convert his project to as3. > > I would like to have some good arguments, but I can find more benefit

Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Muzak
An xml "file" for use by multiple clients simultaneously is just not an option. Go with a database + server side language (php, asp, coldfusion) and add remoting if you can. regards, Muzak - Original Message - From: "Paul Steven" To: "'Flash Coders List'" Sent: Wednesday, April 22,

Re: [Flashcoders] link bar frustrating question

2009-04-22 Thread Omar Fouad
Well, mouseChildren did not help. The only thing it helped was checking whether the e.target is enabled or not in the rollOut handler. According that, I change the color or not. Thanks folks for the replies. On Wed, Apr 22, 2009 at 1:13 PM, Matt S. wrote: > What if the rollOut function looks li

Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Glen Pike
Hi, The public / private key thing is just about "encrypting" some of the score data that you pass to the server to stop people cheating your high score tables. for example, if your high score system in PHP uses a GET / POST something like this: scores.php?name=Glen&score=500

Re: [Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Paul Andrews
- Original Message - From: "Fabio Pinatti" To: "Flash Coders List" Sent: Wednesday, April 22, 2009 2:38 PM Subject: [Flashcoders] Benefits of as3 - to the client Hello coders, A question I was wondering here. A client of mine has a website built with as2. And I explained him I work

RE: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Paul Steven
Thanks for the reply Anthony. Can you elaborate on the public private key system and what this entails? I have not heard that term before. Thanks Paul -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anth

RE: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Paul Steven
Jason, as far as I am aware PHP is my only option. I am comfortable to write the required PHP for both database and xml solutions. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: 22 Apri

[Flashcoders] Benefits of as3 - to the client

2009-04-22 Thread Fabio Pinatti
Hello coders, A question I was wondering here. A client of mine has a website built with as2. And I explained him I work now with as3, but he asked what the real benefits for him, to convert his project to as3. I would like to have some good arguments, but I can find more benefits for me, as deve

Re: [Flashcoders] Loading string data in a file from a server

2009-04-22 Thread Sidney de Koning
Hi Muzak, This is not exactly what i want to do but it comes close (and i cant test right now since i'm at work) The whole 'prompt user for saving a file' i want to avoid, but the below code looks like what i wan to do: var f:File = evt.currentTarget as File; trace("- nativePath: "

RE: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Merrill, Jason
>> The game is for a rather large organization so it is not the >>easiest task in the world getting a database set up at their end. The To do any writing to XML or to a database, server side scripts will need to be used though (i.e. PHP, C#.NET, ColdFusion, ASP). What kind of server side technolo

Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Anthony Pace
Hello Paul, Making good use of a que would be required for writing to the file without errors, so a database is the best and easiest way; as well, for high scores, you might want to use a public private key system for preventing xss exploits, as anyone that knows how to intercept and edit the

Re: [Flashcoders] Loading string data in a file from a server

2009-04-22 Thread Muzak
Well it depends on what you're trying to do with the loaded data. If all you want is to load it and write to disk, then the format doesn't really matter. As mentioned earlier, to write the loaded data to disk you use a combination of a File instance and a FileStream instance. Should be examples

Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Glen Pike
I am guessing that any server side code to update the XML file will rely on the server to "lock" files, etc. Databases are often optimised to allow for multiple "clients" to update, but most file based commands will lock the file preventing access by other "clients" so if your code throws a wo

RE: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Paul Steven
Thanks Glen and Ian Yes I am currently using a mysql database while the high scores are hosted on my site. The game is for a rather large organisation so it is not the easiest task in the world getting a database set up at their end. The mention of flash alone was enough to cause major panic so yo

Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Glen Pike
Not working for Cornwall County Council by any chance??? :) Paul Steven wrote: Thanks Glen and Ian Yes I am currently using a mysql database while the high scores are hosted on my site. The game is for a rather large organisation so it is not the easiest task in the world getting a database set

Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Glen Pike
Hi, Forgot to mention - look at Jobe Makar's "Flash MX Game Programming Demystified" book / examples - he did a "high score system" in ASP that is quite nice and simple. If you are fairly fluent, it should be easy to "port" to PHP or other languages. Glen Paul Steven wrote: I was consideri

Re: [Flashcoders] link bar frustrating question

2009-04-22 Thread Matt S.
What if the rollOut function looks like: private function onRollOut(e:MouseEvent):void { if(CurrentLink != e.currentTarget){ //change colors here of e.currentTarget } } that way it will only change color back if its not currently the CurrentLink. ___

Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Ian Thomas
Go for a database. Access by multiple users is what they are designed for. Don't make life hard for yourself. :-) Ian On Wed, Apr 22, 2009 at 11:57 AM, Paul Steven wrote: > I was considering using an xml file to store high score data for a game. It > is quite possible that this game will have a

[Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Paul Steven
I was considering using an xml file to store high score data for a game. It is quite possible that this game will have a significant amount of traffic (certainly in the first few days after launch) and I am now wondering if an xml file would be suitable. I am not sure what happens in the scenario w

Re: [Flashcoders] Loading string data in a file from a server

2009-04-22 Thread Sidney de Koning
Thanks for the tip, i'll try this out. Thanks, Sid On Apr 22, 2009, at 10:36 AM, Karl DeSaulniers wrote: Just a thought, but if it works when saved locally, could you maybe save it as a cookie on the users computer? That may be a nice shortcut, since its just a playlist. Best, Karl DeSaul

Re: [Flashcoders] link bar frustrating question

2009-04-22 Thread Adrian Ionut Beschea
hi, if changing the text color on rollover is all you need you can set a hover css style for those textfields. no need to listen for rollover --- On Wed, 4/22/09, Glen Pike wrote: From: Glen Pike Subject: Re: [Flashcoders] link bar frustrating question To: "Flash Coders List" Date: Wednesday

Re: [Flashcoders] link bar frustrating question

2009-04-22 Thread Glen Pike
Hi, I think Sprite / MovieClip may have a "mouseChildren" property which you can set to true / false, which I vaguely remember helped me before. Problem is you won't get any further mouse events from it unless you re-enable. Or, the other option is to remove the event listener for rol

Re: [Flashcoders] Loading string data in a file from a server

2009-04-22 Thread Karl DeSaulniers
Just a thought, but if it works when saved locally, could you maybe save it as a cookie on the users computer? That may be a nice shortcut, since its just a playlist. Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Apr 22, 2009, at 2:44 AM, Sidney de Koning wrote: No i cant use

Re: [Flashcoders] Loading string data in a file from a server

2009-04-22 Thread Sidney de Koning
No i cant use XML since eventually it will be a PLS file (Winamp Shoutcast), I wrote a library that parses a PLS file (Playlist file from Winamp Shoutcast server) (http://code.google.com/p/as3plsreader/) this all works fine from with AIR, IF I have the file already saved to local disk. So