DisplayObjectContainer.hx 1.2 KB

123456789101112131415161718192021222324
  1. package flash.display;
  2. extern class DisplayObjectContainer extends InteractiveObject {
  3. var mouseChildren : Bool;
  4. var numChildren(default,never) : Int;
  5. var tabChildren : Bool;
  6. var textSnapshot(default,never) : flash.text.TextSnapshot;
  7. function new() : Void;
  8. function addChild(child : DisplayObject) : DisplayObject;
  9. function addChildAt(child : DisplayObject, index : Int) : DisplayObject;
  10. function areInaccessibleObjectsUnderPoint(point : flash.geom.Point) : Bool;
  11. function contains(child : DisplayObject) : Bool;
  12. function getChildAt(index : Int) : DisplayObject;
  13. function getChildByName(name : String) : DisplayObject;
  14. function getChildIndex(child : DisplayObject) : Int;
  15. function getObjectsUnderPoint(point : flash.geom.Point) : Array<DisplayObject>;
  16. function removeChild(child : DisplayObject) : DisplayObject;
  17. function removeChildAt(index : Int) : DisplayObject;
  18. @:require(flash11) function removeChildren(beginIndex : Int = 0, endIndex : Int = 2147483647) : Void;
  19. function setChildIndex(child : DisplayObject, index : Int) : Void;
  20. @:require(flash11_8) function stopAllMovieClips() : Void;
  21. function swapChildren(child1 : DisplayObject, child2 : DisplayObject) : Void;
  22. function swapChildrenAt(index1 : Int, index2 : Int) : Void;
  23. }