Flash: Added To Stage and cacheAsBitmap tip

by troy on January 7, 2009

cacheAsBitmap can when used correctly times vastly increase performance, however if content is rapidly changing underneath it (sometimes just transparency) can turn into a nightmare. I've found a trick to help debug, using Event.ADDED to stage and UIUtil.getFullPath

Combining the two can help figure out when a MovieClip is playing over and over again, disturbing the cacheAsBitmap above it, or otherwise might not belong by returning a fully qualiifed path from the DisplayObject to the stage.

It can also be used for QA purposes like detecting any clip that starts with 'instance' (meaning it doesn't have a name on stage) and tracing it, which usually means the designer/animator has missed something.


found a bum clip root1.instance159.instance161.H.instance179.instance183 [object ScrollArrowDown_disabledSkin]

{ 1 trackback }

localToGlobal » Blog Archive » news review -> 2nd week of 2009
January 9, 2009 at 9:30 am

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: