Posted By

imperez on 07/13/09


Tagged

textmate actionscript flash 3


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

sidneydekoning
pauloc


Search Displaylist for Bitmap (or any type of DisplayObject)


 / Published in: ActionScript 3
 

  1. var bitmap:Bitmap;
  2. for (var i:int = 0; i < this.numChildren; i++)
  3. {
  4. bitmap = this.getChildAt(i) as Bitmap;
  5. if (bitmap) break;
  6. }

Report this snippet  

You need to login to post a comment.