Posted By

merrittwjm on 08/19/11


Tagged

top on keep


Versions (?)

Keep on Top


 / Published in: ActionScript 3
 

  1. function clicked(event:MouseEvent):void {
  2. var circle:Sprite = Sprite(event.target);
  3. var topPosition:uint = container.numChildren - 1;
  4. container.setChildIndex(circle, topPosition);
  5. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: burnandbass on September 4, 2011

You can attach this function to stage's Event.ADDED so this will automaticly pop-up to the top of display list every time new child is added

Posted By: burnandbass on September 4, 2011

You can attach this function to stage's Event.ADDED so this will automaticly pop-up to the top of display list every time new child is added

You need to login to post a comment.