Daily Archives: April 30, 2008

AS2 to AS3: get all objects in a movieclip

Sometimes you want a list of everything inside a movieclip. For example: you want to know the instance names of every movie in the root. ActionScript 2 A little trick that I used a lot in AS2 is: for(var i in _root){ trace(‘key: ‘ + i + ‘, value: ‘ + _root[i]); } or for(var [...]