Archive for the ‘ActionScript’ Category

Flash Forward 2007 Boston

Monday, September 24th, 2007

I just returned from Flash Forward 2007 Boston.

ActionScript3: “for in” loop not in order…why!?

Thursday, August 23rd, 2007

var meat:Object = new Object();

var varx:String;

meat[”image1″] = 1;
meat[”image2″] = 2;
meat[”image3″] = 3;
meat[”image4″] = 4;
meat[”image5″] = 5;
meat[”image6″] = 6;
meat[”image7″] = 7;
meat[”image8″] = 8;

trace(typeof meat);

for(varx in meat)
{
trace(meat[varx]);
}

stop();

——————————

This outputs:

2
6
8
5
1
7
4
3

——————————

Why!!!