Re: [Flashcoders] AS3 parseFloat issue?

2007-03-06 Thread elibol
I came to this specific value from 6.3e51. Here are some more tests: var test1_str:String = 6.3e51; //6.3e+51 outputs same result. var n1:Number = parseFloat(test1_str); trace(n1); trace(n1 == (6.3e51)); trace(6.30e+51 == 6.3e+51); trace(n1-(6.3e51)); //AS3 6.30e+51

[Flashcoders] Re: Flashcoders Digest, Vol 3, Issue 17

2007-03-06 Thread Josh Ettwein
I've been evaluating these myself for some time - best one I've seen out of the box (we rolled our own due to spec constraints) is FLV Player... I think it meets all your criteria listed below. Not positive, but the codebase is really solid. That was my biggest concern with a lot of these

RE: [Flashcoders] Flex 360 Conference

2007-03-06 Thread Frederic v. Bochmann
A friend of mine went, but I live at the other end of the continent. He told me that: http://blog.benstucki.net/ had an interesting talk .. But then again, I wasn't there. Cheers Fredz./ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Dupré Sent:

Re: [Flashcoders] AS3 parseFloat issue?

2007-03-06 Thread Ron Wheeler
Since the dawn of computing in the 1950s, it has clearly been understood that Thou shalt not compare floating point numbers for equality It is not supposed to work. It only rarely does work(every now and again you will get lucky depending on the number that you chose to test). If you change

[Flashcoders] haXe 1.12 Released !

2007-03-06 Thread Nicolas Cannasse
Hi lists, I'm happy to announce the 1.12 Release of haXe ! The two biggest change in that release are : - AS3 code generator : you can generate AS3 source code from a haXe program. This enable you to write code in haXe and give some AS3 sources to your clients. It's also a good way to get better

Re: [Flashcoders] clearInterval(0);

2007-03-06 Thread Andy Herrman
I would suggest initializing the interval value as NULL instead of 0, since I think 0 is a valid ID. That way you can be sure you don't accidentally clear an interval that you don't want to. -Andy On 3/4/07, Alain Rousseau [EMAIL PROTECTED] wrote: Well actually, clearInterval(0) clears the

RE: [Flashcoders] Number -- how good for use as an integer?

2007-03-06 Thread Douglas Pearson
Thanks guys for the responses. I'm actually not concerned with arbitrary precision just storing a 32-bit int (like a database key) and retrieving it accurately. I guess the only safe way in AS1/AS2 is to do the whole Math.round(value+0.01) thing. Doug -Original Message- From: Jim Cheng

[Flashcoders] Datagrid - Hard

2007-03-06 Thread Laurent CUCHET
How can I do to convert Datagrid Accent ? I got a function name “replaceAccents” convert Textfield accent but I don’t find the way to done it with datagrid as show after. Thank you for your tips 1. Function function replaceAccents(fld:TextField, fromArr:Array, toArr:Array):Void { var

Re: [Flashcoders] AS3 parseFloat issue?

2007-03-06 Thread Fumio Nonaka
2 floating point numbers are NOT close enough. That IS the problem. var _str:String = 1.2e+51; var n:Number = parseFloat(_str); trace((n-1.2e+51) 1000); // true _ Ron Wheeler wrote: If you want to know that 2 floating point numbers are close enough to be

Re: [Flashcoders] AS3 parseFloat issue?

2007-03-06 Thread Jim Cheng
Fumio Nonaka wrote: 2 floating point numbers are NOT close enough. That IS the problem. var _str:String = 1.2e+51; var n:Number = parseFloat(_str); trace((n-1.2e+51) 1000); // true In ActionScript 3, the native Number data type is internally represented as

[Flashcoders] FileReference.dowload() Open/Save Dialog?

2007-03-06 Thread Battershall, Jeff
When downloading using FileReference, is it possible to get the standard open/save dialog you normally see in IE? It would seem not, but I'm just checking. Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)

RE: [Flashcoders] RE: Cache Killer... is it bulletproof ???

2007-03-06 Thread Steven Sacks | BLITZ
A: deny a user from hotlinking Meaning? B: deny cacheing of swf files and content Impossible. C: deny playability locally. Check for domain at launch. If domain doesn't match, don't play. Cache Killer isn't about keeping something from being cached (which you can't do), it's about

Re: [Flashcoders] clearInterval(0);

2007-03-06 Thread Muzak
or: var num:Number = Number.NaN; trace(isNaN(num)); regards, Muzak - Original Message - From: Andy Herrman [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, March 06, 2007 6:37 PM Subject: Re: [Flashcoders] clearInterval(0); I would suggest initializing the

[Flashcoders] RSS Reader Component for Flash

2007-03-06 Thread Phil Dupré
I'm looking for a RSS Reader component that can syndicate the first couple of sentences from web pages elsewhere, which will be text from a blog for example. Ideally, I'd like the feeder to display quick links and a few sentences of content in a similar manner as www.popurl.com. Anyone