Some favorite site feeds aggregated locally: iPhone Development RSS   Adobe Labs RSS   Macrumors RSS

Thursday, August 23, 2007

digging into root

Thursday, August 23, 2007   

A trick many of us used at one time or another was to inspect timelines (mainly root) looking for certain movieclip instances, or vars, whatever. That worked well in AS2 but if you do the same in AS3, you'll only see variables and not movieclip objects.

You'll need to change things a little since now we have the DisplayObject:
for (var n:Number = 0; n<this.numChildren; n++)
{
trace(this.getChildrenAt[n]);
}
Sometimes its a little easy to get stuck thinking in AS2 terms.
 
 Return to the main page
Comments:

There are currently 0 Comments:

 Leave a comment