Nicolas Cannasse 14 years ago
parent
commit
c7a13210b6

+ 1 - 1
std/flash9/display/DisplayObjectContainer.hx

@@ -16,7 +16,7 @@ extern class DisplayObjectContainer extends InteractiveObject {
 	function getObjectsUnderPoint(point : flash.geom.Point) : Array<DisplayObject>;
 	function removeChild(child : DisplayObject) : DisplayObject;
 	function removeChildAt(index : Int) : DisplayObject;
-	@:require(flash11) function removeChildren() : Void;
+	@:require(flash11) function removeChildren(beginIndex : Int = 0, endIndex : Int = 2147483647) : Void;
 	function setChildIndex(child : DisplayObject, index : Int) : Void;
 	function swapChildren(child1 : DisplayObject, child2 : DisplayObject) : Void;
 	function swapChildrenAt(index1 : Int, index2 : Int) : Void;

+ 4 - 0
std/flash9/display/IDrawCommand.hx

@@ -0,0 +1,4 @@
+package flash.display;
+
+extern interface IDrawCommand {
+}

+ 3 - 0
std/flash9/display/InteractiveObject.hx

@@ -6,7 +6,10 @@ extern class InteractiveObject extends DisplayObject {
 	var doubleClickEnabled : Bool;
 	var focusRect : Dynamic;
 	var mouseEnabled : Bool;
+	@:require(flash11) var needsSoftKeyboard : Bool;
+	@:require(flash11) var softKeyboardInputAreaOfInterest : flash.geom.Rectangle;
 	var tabEnabled : Bool;
 	var tabIndex : Int;
 	function new() : Void;
+	@:require(flash11) function requestSoftKeyboard() : Bool;
 }

+ 1 - 1
std/flash9/display/LoaderInfo.hx

@@ -18,7 +18,7 @@ extern class LoaderInfo extends flash.events.EventDispatcher {
 	var parentAllowsChild(default,null) : Bool;
 	var sameDomain(default,null) : Bool;
 	var sharedEvents(default,null) : flash.events.EventDispatcher;
-	var swfVersion(default,null) : SWFVersion;
+	var swfVersion(default,null) : UInt;
 	@:require(flash10_1) var uncaughtErrorEvents(default,null) : flash.events.UncaughtErrorEvents;
 	var url(default,null) : String;
 	var width(default,null) : Int;

+ 13 - 13
std/flash9/display/SWFVersion.hx

@@ -1,16 +1,16 @@
 package flash.display;
 
-@:fakeEnum(UInt) extern enum SWFVersion {
-	FLASH1;
-	FLASH10;
-	FLASH11;
-	FLASH12;
-	FLASH2;
-	FLASH3;
-	FLASH4;
-	FLASH5;
-	FLASH6;
-	FLASH7;
-	FLASH8;
-	FLASH9;
+extern class SWFVersion {
+	static var FLASH1 : UInt;
+	static var FLASH10 : UInt;
+	static var FLASH11 : UInt;
+	static var FLASH12 : UInt;
+	static var FLASH2 : UInt;
+	static var FLASH3 : UInt;
+	static var FLASH4 : UInt;
+	static var FLASH5 : UInt;
+	static var FLASH6 : UInt;
+	static var FLASH7 : UInt;
+	static var FLASH8 : UInt;
+	static var FLASH9 : UInt;
 }

+ 2 - 0
std/flash9/display/Stage.hx

@@ -6,6 +6,7 @@ extern class Stage extends DisplayObjectContainer {
 	@:require(flash10_2) var color : UInt;
 	@:require(flash10) var colorCorrection : ColorCorrection;
 	@:require(flash10) var colorCorrectionSupport(default,null) : ColorCorrectionSupport;
+	@:require(flash11) var displayContextInfo(default,null) : String;
 	var displayState : StageDisplayState;
 	var focus : InteractiveObject;
 	var frameRate : Float;
@@ -15,6 +16,7 @@ extern class Stage extends DisplayObjectContainer {
 	var quality : StageQuality;
 	var scaleMode : StageScaleMode;
 	var showDefaultContextMenu : Bool;
+	@:require(flash11) var softKeyboardRect(default,null) : flash.geom.Rectangle;
 	@:require(flash11) var stage3Ds(default,null) : flash.Vector<Stage3D>;
 	var stageFocusRect : Bool;
 	var stageHeight : Int;

+ 4 - 1
std/flash9/display/Stage3D.hx

@@ -2,6 +2,9 @@ package flash.display;
 
 @:require(flash11) extern class Stage3D extends flash.events.EventDispatcher {
 	var context3D(default,null) : flash.display3D.Context3D;
-	var viewPort : flash.geom.Rectangle;
+	var transparent : Bool;
+	var visible : Bool;
+	var x : Float;
+	var y : Float;
 	function requestContext3D(?context3DRenderMode : String) : Void;
 }

+ 1 - 1
std/flash9/display3D/Context3D.hx

@@ -1,6 +1,6 @@
 package flash.display3D;
 
-@:final extern class Context3D {
+@:final extern class Context3D extends flash.events.EventDispatcher {
 	var driverInfo(default,null) : String;
 	var enableErrorChecking : Bool;
 	function clear(red : Float = 0, green : Float = 0, blue : Float = 0, alpha : Float = 1, depth : Float = 1, stencil : UInt = 0, mask : UInt = 0xFFFFFFFF) : Void;

+ 5 - 5
std/flash9/display3D/Context3DClearMask.hx

@@ -1,8 +1,8 @@
 package flash.display3D;
 
-@:fakeEnum(Int) extern enum Context3DClearMask {
-	ALL;
-	COLOR;
-	DEPTH;
-	STENCIL;
+extern class Context3DClearMask {
+	static var ALL : Int;
+	static var COLOR : Int;
+	static var DEPTH : Int;
+	static var STENCIL : Int;
 }