Search Displaylist for Bitmap (or any type of DisplayObject)


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.