Re: [Flashcoders] Flash Player bug?
According to the ECMA-262 (11.8 and 11.9), all the statements below should return false. And so does JavaScript in Netscape. Therefore, I think this is a bug. _ Tuomas Glad wrote: I was wondering how this is possible? var test:Number = undefined; trace(test = 0); // true trace(test == 0); // false trace(test 0); // undefined Good luck, Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.org/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Player bug?
Hello everybody, I was wondering how this is possible? var test:Number = undefined; trace(test = 0); // true trace(test == 0); // false trace(test 0); // undefined - tuomas Tuomas Glad Goodmood Productions Oy user interface designer PL 132, Ruukinkatu 4 C 20101 Turku Finland Tel. +359 - (0)20 1200 100 Mobile +358 - (0)40 539 7935 Fax. +358 - (0)20 1200 150 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash Player bug?
Tuomas Glad wrote: var test:Number = undefined; trace(test = 0); // true a=b is defined as !(ab) - and undefined0 is undefined. This undefined = 0 is true - for quite annoying reasons. :) -- Morten Barklund - Information Architect - TBWA\Play Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark Phone: +45 7027 2227 - Fax: +45 3369 1174 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com