I have the following case:

var l:Array = [{},{}]
function test():void{
        for each(var i:Object in l){
                var id:String;// = null;
                trace("1" ,id);
                id = "test" + Math.random().toString();
                trace("2" ,id);
        }
}

I seems that 'id' is not resetted to null on every iteration as I would expect. I have to explicitly set the id to null myself! Does some know why this is, or are my expectations just wrong.


Jiri
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to