Re: [Flashcoders] Flash Player bug?

2006-02-20 Thread Fumio Nonaka
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

[Flashcoders] Flash Player bug?

2006-02-17 Thread Tuomas Glad
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 -

Re: [Flashcoders] Flash Player bug?

2006-02-17 Thread Morten Barklund TBWA\\Play
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