A Number initializes to NaN in the Flash runtimes, if you don't set it to
anything else.

- Josh
On Jul 5, 2016 3:07 AM, "Kessler CTR Mark J" <mark.kessler....@usmc.mil>
wrote:

> Number?
>
>
> -Mark
>
>
> -----Original Message-----
> From: Alex Harui [mailto:aha...@adobe.com]
> Sent: Friday, July 01, 2016 7:46 PM
> To: dev@flex.apache.org
> Subject: Re: flexjs init the int =0
>
> Yep.  Looking into it.  Are there any other types other than int and uint
> that will need initialization?
>
> -Alex
>
> On 7/1/16, 1: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.
> >>
>
>

Reply via email to