Friday, May 1, 2009

Do you know where your array elements are?

This may surprise you. Call testArray(33), say, from somewhere in your app.

private function testArray(n:int):void
{
var a:Array=new Array(n);
a.push(666);
trace(a);
}


Q: Where do you think the 666 is?

A: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,666

No comments: