Thursday, August 23, 2007
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.


0 Comments:

Post comment

Links to this post:


Create a Link

gotoAndStop( topOfPage );