Guest User

Untitled

a guest
Jul 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function getChildren(displayObjectContainer:DisplayObjectContainer):Array{
  2. var children:Array = [];
  3. var child:DisplayObject;
  4.  
  5. var i:int = displayObjectContainer.numChildren;
  6. while(i--){
  7. child = displayObjectContainer.getChildAt(i);
  8. children.unshift(child);
  9. }
  10.  
  11. return children;
  12. }
Add Comment
Please, Sign In to add comment