Hey list,
does anyone know the cool rationale behind the fact that the compiler won't
allow me to execute a completely sane piece of code such as:
private function _demo():void {
for (var i:Number = 0; i < 10;i++) {
//evil stuff here
}
for (var i:Number = 0; i < 10;i++) {
//evil stuff here
}
}
(getting a redefined blablah variable, to which there is no workaround but
to rename the loop variables I think)
But WILL allow me to do something stupid like:
private function _demo():void {
for (var i:int = 0; i < 10; i++)
{
trace (this[j]);
}
var j:Object = null;
}
:)
JC
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders