no, lets say count was 10. 

for (var i:int=0; i < 10; i++)
{
   // do something
}

at the end of the loop I = 9, then it would i++, so at the very end 
it would be 10.



--- In [email protected], "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "toofah_gm" <garym@> wrote:
> >
> > It seems to me and my co-workers that the Flex compiler is broken 
when
> > it comes to local variable scoping within methods.
> > 
> > For example:
> > 
> > for (var i:int=0; i<count; i++)
> > {
> >    // do something
> > }
> > 
> > for (var i:int=0; i<count; i++)
> > {
> >    // do something else
> > }
> 
> If you were to trace i after the loop, wouldn't you get count+1?
>


Reply via email to