ihzi is correct. to clarify, the compiler should initialize integers to zero when they are defined. and it should probably wrap any code that assigns a value to an int with parseInt().
On Jul 1, 2016 3:38 PM, "jude" <flexcapaci...@gmail.com> wrote: > > in as3 > > var i:int; // i equals 0 > > in JavaScript i is undefined because we don't know what type it is > > var i; // null, undefined or NaN > > therefore we need to initialize every integer as zero when it's defined. > > On Jun 30, 2016 10:35 PM, "lizhi" <s...@qq.com> wrote: >> >> and i++ in as i=1 >> but js i= NaN >> >> >> >> -- >> View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-init-the-int-0-tp53569p53570.html >> Sent from the Apache Flex Development mailing list archive at Nabble.com.