Browse Source

added flash11 apis

Nicolas Cannasse 14 years ago
parent
commit
985602f009

+ 2 - 2
doc/extract.hxml

@@ -1,6 +1,6 @@
 -debug
 -debug
--swf-lib library102.swf
+-swf-lib library11.swf
 -swf9 test.swf
 -swf9 test.swf
--swf-version 10.2
+-swf-version 11
 --macro patchTypes("../doc/extract.patch")
 --macro patchTypes("../doc/extract.patch")
 --gen-hx-classes
 --gen-hx-classes

+ 56 - 4
doc/extract.patch

@@ -829,21 +829,73 @@ flash.globalization.StringTools.lastOperationStatus : LastOperationStatus;
 
 
 flash.media.MicrophoneEnhancedOptions.mode : MicrophoneEnhancedMode;
 flash.media.MicrophoneEnhancedOptions.mode : MicrophoneEnhancedMode;
 
 
-@:require(flash11) static flash.display.Stage.stage3Ds;
+// FLASH 11 FEATURES
+
+@:require(flash11) flash.display.DisplayObjectContainer.removeChildren;
+@:require(flash11) flash.display.Graphics.cubicCurveTo;
+@:require(flash11) flash.display.GraphicsPath.cubicCurveTo;
+
+@:require(flash11) flash.display.InteractiveObject.needsSoftKeyboard;
+@:require(flash11) flash.display.InteractiveObject.softKeyboardInputAreaOfInterest;
+@:require(flash11) flash.display.InteractiveObject.requestSoftKeyboard;
+
+@:require(flash11) flash.display.MovieClip.isPlaying;
+
+@:require(flash11) flash.display.Stage.allowsFullScreen;
+@:require(flash11) flash.display.Stage.softKeyboardRect;
+@:require(flash11) flash.display.Stage.stage3Ds;
+@:require(flash11) flash.display.Stage3D;
+
+@:require(flash11) static flash.events.Event.CONTEXT3D_CREATE;
+@:require(flash11) static flash.events.Event.TEXT_INTERACTION_MODE_CHANGE;
+
+@:require(flash11) static flash.events.StageVideoEvent.RENDER_STATUS_AVAILABLE;
+@:require(flash11) static flash.events.StageVideoEvent.STAGE_VIDEO_STATE;
+
+@:require(flash11) flash.geom.Matrix3D.copyColumnFrom;
+@:require(flash11) flash.geom.Matrix3D.copyColumnTo;
+@:require(flash11) flash.geom.Matrix3D.copyFrom;
+@:require(flash11) flash.geom.Matrix3D.copyRawDataFrom;
+@:require(flash11) flash.geom.Matrix3D.copyRawDataTo;
+@:require(flash11) flash.geom.Matrix3D.copyRowFrom;
+@:require(flash11) flash.geom.Matrix3D.copyRowTo;
+@:require(flash11) flash.geom.Matrix3D.copyToMatrix3D;
+
+@:require(flash11) flash.geom.Matrix.copyColumnFrom;
+@:require(flash11) flash.geom.Matrix.copyColumnTo;
+@:require(flash11) flash.geom.Matrix.copyFrom;
+@:require(flash11) flash.geom.Matrix.copyRowFrom;
+@:require(flash11) flash.geom.Matrix.copyRowTo;
+@:require(flash11) flash.geom.Matrix.setTo;
+
+@:require(flash11) flash.geom.Point.copyFrom;
+@:require(flash11) flash.geom.Point.setTo;
+
+@:require(flash11) flash.geom.Rectangle.copyFrom;
+@:require(flash11) flash.geom.Rectangle.setTo;
+
+@:require(flash11) flash.geom.Vector3D.copyFrom;
+@:require(flash11) flash.geom.Vector3D.setTo;
+
+@:require(flash11) flash.media.Sound.loadMP3FromByteArray;
+@:require(flash11) flash.media.Sound.loadPCMFromByteArray;
+
 -flash.display.Stage3D.new;
 -flash.display.Stage3D.new;
 -flash.display3D.Context3D.new;
 -flash.display3D.Context3D.new;
 -flash.display3D.IndexBuffer3D.new;
 -flash.display3D.IndexBuffer3D.new;
 -flash.display3D.Program3D.new;
 -flash.display3D.Program3D.new;
 -flash.display3D.VertexBuffer3D.new;
 -flash.display3D.VertexBuffer3D.new;
--flash.display3D.CubeTexture.new;
--flash.display3D.TextureBase.new;
--flash.display3D.Texture.new;
+-flash.display3D.textures.CubeTexture.new;
+-flash.display3D.textures.TextureBase.new;
+-flash.display3D.textures.Texture.new;
 
 
 flash.display3D.Context3D.$sourceFactor : Context3DBlendFactor;
 flash.display3D.Context3D.$sourceFactor : Context3DBlendFactor;
 flash.display3D.Context3D.$destinationFactor : Context3DBlendFactor;
 flash.display3D.Context3D.$destinationFactor : Context3DBlendFactor;
 flash.display3D.Context3D.$format : Context3DTextureFormat;
 flash.display3D.Context3D.$format : Context3DTextureFormat;
 flash.display3D.Context3D.$triangleFaceToCull : Context3DTriangleFace;
 flash.display3D.Context3D.$triangleFaceToCull : Context3DTriangleFace;
+flash.display3D.Context3D.$triangleFace : Context3DTriangleFace;
 flash.display3D.Context3D.$passCompareMode : Context3DCompareMode;
 flash.display3D.Context3D.$passCompareMode : Context3DCompareMode;
+flash.display3D.Context3D.$compareMode : Context3DCompareMode;
 flash.display3D.Context3D.$programType : Context3DProgramType;
 flash.display3D.Context3D.$programType : Context3DProgramType;
 flash.display3D.Context3D.$actionOnBothPass : Context3DStencilAction;
 flash.display3D.Context3D.$actionOnBothPass : Context3DStencilAction;
 flash.display3D.Context3D.$actionOnDepthFail : Context3DStencilAction;
 flash.display3D.Context3D.$actionOnDepthFail : Context3DStencilAction;

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

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

+ 1 - 0
std/flash9/display/Graphics.hx

@@ -8,6 +8,7 @@ package flash.display;
 	@:require(flash10) function beginShaderFill(shader : Shader, ?matrix : flash.geom.Matrix) : Void;
 	@:require(flash10) function beginShaderFill(shader : Shader, ?matrix : flash.geom.Matrix) : Void;
 	function clear() : Void;
 	function clear() : Void;
 	@:require(flash10) function copyFrom(sourceGraphics : Graphics) : Void;
 	@:require(flash10) function copyFrom(sourceGraphics : Graphics) : Void;
+	@:require(flash11) function cubicCurveTo(controlX1 : Float, controlY1 : Float, controlX2 : Float, controlY2 : Float, anchorX : Float, anchorY : Float) : Void;
 	function curveTo(controlX : Float, controlY : Float, anchorX : Float, anchorY : Float) : Void;
 	function curveTo(controlX : Float, controlY : Float, anchorX : Float, anchorY : Float) : Void;
 	function drawCircle(x : Float, y : Float, radius : Float) : Void;
 	function drawCircle(x : Float, y : Float, radius : Float) : Void;
 	function drawEllipse(x : Float, y : Float, width : Float, height : Float) : Void;
 	function drawEllipse(x : Float, y : Float, width : Float, height : Float) : Void;

+ 1 - 0
std/flash9/display/GraphicsPath.hx

@@ -5,6 +5,7 @@ package flash.display;
 	var data : flash.Vector<Float>;
 	var data : flash.Vector<Float>;
 	var winding : GraphicsPathWinding;
 	var winding : GraphicsPathWinding;
 	function new(?commands : flash.Vector<Int>, ?data : flash.Vector<Float>, ?winding : GraphicsPathWinding) : Void;
 	function new(?commands : flash.Vector<Int>, ?data : flash.Vector<Float>, ?winding : GraphicsPathWinding) : Void;
+	@:require(flash11) function cubicCurveTo(controlX1 : Float, controlY1 : Float, controlX2 : Float, controlY2 : Float, anchorX : Float, anchorY : Float) : Void;
 	function curveTo(controlX : Float, controlY : Float, anchorX : Float, anchorY : Float) : Void;
 	function curveTo(controlX : Float, controlY : Float, anchorX : Float, anchorY : Float) : Void;
 	function lineTo(x : Float, y : Float) : Void;
 	function lineTo(x : Float, y : Float) : Void;
 	function moveTo(x : Float, y : Float) : Void;
 	function moveTo(x : Float, y : Float) : Void;

+ 1 - 0
std/flash9/display/MovieClip.hx

@@ -8,6 +8,7 @@ extern class MovieClip extends Sprite #if !flash_strict, implements Dynamic #end
 	var currentScene(default,null) : Scene;
 	var currentScene(default,null) : Scene;
 	var enabled : Bool;
 	var enabled : Bool;
 	var framesLoaded(default,null) : Int;
 	var framesLoaded(default,null) : Int;
+	@:require(flash11) var isPlaying(default,null) : Bool;
 	var scenes(default,null) : Array<Scene>;
 	var scenes(default,null) : Array<Scene>;
 	var totalFrames(default,null) : Int;
 	var totalFrames(default,null) : Int;
 	var trackAsMenu : Bool;
 	var trackAsMenu : Bool;

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

@@ -3,6 +3,8 @@ package flash.display;
 @:fakeEnum(UInt) extern enum SWFVersion {
 @:fakeEnum(UInt) extern enum SWFVersion {
 	FLASH1;
 	FLASH1;
 	FLASH10;
 	FLASH10;
+	FLASH11;
+	FLASH12;
 	FLASH2;
 	FLASH2;
 	FLASH3;
 	FLASH3;
 	FLASH4;
 	FLASH4;

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

@@ -2,6 +2,7 @@ package flash.display;
 
 
 extern class Stage extends DisplayObjectContainer {
 extern class Stage extends DisplayObjectContainer {
 	var align : StageAlign;
 	var align : StageAlign;
+	@:require(flash11) var allowsFullScreen(default,null) : Bool;
 	@:require(flash10_2) var color : UInt;
 	@:require(flash10_2) var color : UInt;
 	@:require(flash10) var colorCorrection : ColorCorrection;
 	@:require(flash10) var colorCorrection : ColorCorrection;
 	@:require(flash10) var colorCorrectionSupport(default,null) : ColorCorrectionSupport;
 	@:require(flash10) var colorCorrectionSupport(default,null) : ColorCorrectionSupport;
@@ -14,6 +15,7 @@ extern class Stage extends DisplayObjectContainer {
 	var quality : StageQuality;
 	var quality : StageQuality;
 	var scaleMode : StageScaleMode;
 	var scaleMode : StageScaleMode;
 	var showDefaultContextMenu : Bool;
 	var showDefaultContextMenu : Bool;
+	@:require(flash11) var stage3Ds(default,null) : flash.Vector<Stage3D>;
 	var stageFocusRect : Bool;
 	var stageFocusRect : Bool;
 	var stageHeight : Int;
 	var stageHeight : Int;
 	@:require(flash10_2) var stageVideos(default,null) : flash.Vector<flash.media.StageVideo>;
 	@:require(flash10_2) var stageVideos(default,null) : flash.Vector<flash.media.StageVideo>;

+ 7 - 0
std/flash9/display/Stage3D.hx

@@ -0,0 +1,7 @@
+package flash.display;
+
+@:require(flash11) extern class Stage3D extends flash.events.EventDispatcher {
+	var context3D(default,null) : flash.display3D.Context3D;
+	var viewPort : flash.geom.Rectangle;
+	function requestContext3D(?context3DRenderMode : String) : Void;
+}

+ 31 - 0
std/flash9/display3D/Context3D.hx

@@ -0,0 +1,31 @@
+package flash.display3D;
+
+@:final extern class Context3D {
+	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;
+	function configureBackBuffer(width : Int, height : Int, antiAlias : Int, enableDepthAndStencil : Bool = true) : Void;
+	function createCubeTexture(size : Int, format : Context3DTextureFormat, optimizeForRenderToTexture : Bool) : flash.display3D.textures.CubeTexture;
+	function createIndexBuffer(numIndices : Int) : IndexBuffer3D;
+	function createProgram() : Program3D;
+	function createTexture(width : Int, height : Int, format : Context3DTextureFormat, optimizeForRenderToTexture : Bool) : flash.display3D.textures.Texture;
+	function createVertexBuffer(numVertices : Int, data32PerVertex : Int) : VertexBuffer3D;
+	function dispose() : Void;
+	function drawToBitmapData(destination : flash.display.BitmapData) : Void;
+	function drawTriangles(indexBuffer : IndexBuffer3D, firstIndex : Int = 0, numTriangles : Int = -1) : Void;
+	function present() : Void;
+	function setBlendFactors(sourceFactor : Context3DBlendFactor, destinationFactor : Context3DBlendFactor) : Void;
+	function setColorMask(red : Bool, green : Bool, blue : Bool, alpha : Bool) : Void;
+	function setCulling(triangleFaceToCull : Context3DTriangleFace) : Void;
+	function setDepthTest(depthMask : Bool, passCompareMode : Context3DCompareMode) : Void;
+	function setProgram(program : Program3D) : Void;
+	function setProgramConstantsFromMatrix(programType : Context3DProgramType, firstRegister : Int, matrix : flash.geom.Matrix3D, transposedMatrix : Bool = false) : Void;
+	function setProgramConstantsFromVector(programType : Context3DProgramType, firstRegister : Int, data : flash.Vector<Float>, numRegisters : Int = -1) : Void;
+	function setRenderToBackBuffer() : Void;
+	function setRenderToTexture(texture : flash.display3D.textures.TextureBase, enableDepthAndStencil : Bool = false, antiAlias : Int = 0, surfaceSelector : Int = 0) : Void;
+	function setScissorRectangle(rectangle : flash.geom.Rectangle) : Void;
+	function setStencilActions(?triangleFace : Context3DTriangleFace, ?compareMode : Context3DCompareMode, ?actionOnBothPass : Context3DStencilAction, ?actionOnDepthFail : Context3DStencilAction, ?actionOnDepthPassStencilFail : Context3DStencilAction) : Void;
+	function setStencilReferenceValue(referenceValue : UInt, readMask : UInt = 255, writeMask : UInt = 255) : Void;
+	function setTextureAt(sampler : Int, texture : flash.display3D.textures.TextureBase) : Void;
+	function setVertexBufferAt(index : Int, buffer : VertexBuffer3D, bufferOffset : Int = 0, ?format : Context3DVertexBufferFormat) : Void;
+}

+ 14 - 0
std/flash9/display3D/Context3DBlendFactor.hx

@@ -0,0 +1,14 @@
+package flash.display3D;
+
+@:fakeEnum(String) extern enum Context3DBlendFactor {
+	DESTINATION_ALPHA;
+	DESTINATION_COLOR;
+	ONE;
+	ONE_MINUS_DESTINATION_ALPHA;
+	ONE_MINUS_DESTINATION_COLOR;
+	ONE_MINUS_SOURCE_ALPHA;
+	ONE_MINUS_SOURCE_COLOR;
+	SOURCE_ALPHA;
+	SOURCE_COLOR;
+	ZERO;
+}

+ 8 - 0
std/flash9/display3D/Context3DClearMask.hx

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

+ 12 - 0
std/flash9/display3D/Context3DCompareMode.hx

@@ -0,0 +1,12 @@
+package flash.display3D;
+
+@:fakeEnum(String) extern enum Context3DCompareMode {
+	ALWAYS;
+	EQUAL;
+	GREATER;
+	GREATER_EQUAL;
+	LESS;
+	LESS_EQUAL;
+	NEVER;
+	NOT_EQUAL;
+}

+ 6 - 0
std/flash9/display3D/Context3DProgramType.hx

@@ -0,0 +1,6 @@
+package flash.display3D;
+
+@:fakeEnum(String) extern enum Context3DProgramType {
+	FRAGMENT;
+	VERTEX;
+}

+ 6 - 0
std/flash9/display3D/Context3DRenderMode.hx

@@ -0,0 +1,6 @@
+package flash.display3D;
+
+@:fakeEnum(String) extern enum Context3DRenderMode {
+	AUTO;
+	SOFTWARE;
+}

+ 12 - 0
std/flash9/display3D/Context3DStencilAction.hx

@@ -0,0 +1,12 @@
+package flash.display3D;
+
+@:fakeEnum(String) extern enum Context3DStencilAction {
+	DECREMENT_SATURATE;
+	DECREMENT_WRAP;
+	INCREMENT_SATURATE;
+	INCREMENT_WRAP;
+	INVERT;
+	KEEP;
+	SET;
+	ZERO;
+}

+ 6 - 0
std/flash9/display3D/Context3DTextureFormat.hx

@@ -0,0 +1,6 @@
+package flash.display3D;
+
+@:fakeEnum(String) extern enum Context3DTextureFormat {
+	BGRA;
+	COMPRESSED;
+}

+ 8 - 0
std/flash9/display3D/Context3DTriangleFace.hx

@@ -0,0 +1,8 @@
+package flash.display3D;
+
+@:fakeEnum(String) extern enum Context3DTriangleFace {
+	BACK;
+	FRONT;
+	FRONT_AND_BACK;
+	NONE;
+}

+ 9 - 0
std/flash9/display3D/Context3DVertexBufferFormat.hx

@@ -0,0 +1,9 @@
+package flash.display3D;
+
+@:fakeEnum(String) extern enum Context3DVertexBufferFormat {
+	BYTES_4;
+	FLOAT_1;
+	FLOAT_2;
+	FLOAT_3;
+	FLOAT_4;
+}

+ 7 - 0
std/flash9/display3D/IndexBuffer3D.hx

@@ -0,0 +1,7 @@
+package flash.display3D;
+
+@:final extern class IndexBuffer3D {
+	function dispose() : Void;
+	function uploadFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : Int, startOffset : Int, count : Int) : Void;
+	function uploadFromVector(data : flash.Vector<UInt>, startOffset : Int, count : Int) : Void;
+}

+ 6 - 0
std/flash9/display3D/Program3D.hx

@@ -0,0 +1,6 @@
+package flash.display3D;
+
+@:final extern class Program3D {
+	function dispose() : Void;
+	function upload(vertexProgram : flash.utils.ByteArray, fragmentProgram : flash.utils.ByteArray) : Void;
+}

+ 7 - 0
std/flash9/display3D/VertexBuffer3D.hx

@@ -0,0 +1,7 @@
+package flash.display3D;
+
+extern class VertexBuffer3D {
+	function dispose() : Void;
+	function uploadFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : Int, startVertex : Int, numVertices : Int) : Void;
+	function uploadFromVector(data : flash.Vector<Float>, startVertex : Int, numVertices : Int) : Void;
+}

+ 7 - 0
std/flash9/display3D/textures/CubeTexture.hx

@@ -0,0 +1,7 @@
+package flash.display3D.textures;
+
+@:final extern class CubeTexture extends TextureBase {
+	function uploadCompressedTextureFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : UInt) : Void;
+	function uploadFromBitmapData(source : flash.display.BitmapData, side : UInt, miplevel : UInt = 0) : Void;
+	function uploadFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : UInt, side : UInt, miplevel : UInt = 0) : Void;
+}

+ 7 - 0
std/flash9/display3D/textures/Texture.hx

@@ -0,0 +1,7 @@
+package flash.display3D.textures;
+
+@:final extern class Texture extends TextureBase {
+	function uploadCompressedTextureFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : UInt) : Void;
+	function uploadFromBitmapData(source : flash.display.BitmapData, miplevel : UInt = 0) : Void;
+	function uploadFromByteArray(data : flash.utils.ByteArray, byteArrayOffset : UInt, miplevel : UInt = 0) : Void;
+}

+ 5 - 0
std/flash9/display3D/textures/TextureBase.hx

@@ -0,0 +1,5 @@
+package flash.display3D.textures;
+
+extern class TextureBase {
+	function dispose() : Void;
+}

+ 1 - 0
std/flash9/events/Event.hx

@@ -24,6 +24,7 @@ extern class Event {
 	static var CLOSE : String;
 	static var CLOSE : String;
 	static var COMPLETE : String;
 	static var COMPLETE : String;
 	static var CONNECT : String;
 	static var CONNECT : String;
+	@:require(flash11) static var CONTEXT3D_CREATE : String;
 	@:require(flash10) static var COPY : String;
 	@:require(flash10) static var COPY : String;
 	@:require(flash10) static var CUT : String;
 	@:require(flash10) static var CUT : String;
 	static var DEACTIVATE : String;
 	static var DEACTIVATE : String;

+ 6 - 0
std/flash9/geom/Matrix.hx

@@ -10,6 +10,11 @@ extern class Matrix {
 	function new(a : Float = 1, b : Float = 0, c : Float = 0, d : Float = 1, tx : Float = 0, ty : Float = 0) : Void;
 	function new(a : Float = 1, b : Float = 0, c : Float = 0, d : Float = 1, tx : Float = 0, ty : Float = 0) : Void;
 	function clone() : Matrix;
 	function clone() : Matrix;
 	function concat(m : Matrix) : Void;
 	function concat(m : Matrix) : Void;
+	@:require(flash11) function copyColumnFrom(column : UInt, vector3D : Vector3D) : Void;
+	@:require(flash11) function copyColumnTo(column : UInt, vector3D : Vector3D) : Void;
+	@:require(flash11) function copyFrom(sourceMatrix : Matrix) : Void;
+	@:require(flash11) function copyRowFrom(row : UInt, vector3D : Vector3D) : Void;
+	@:require(flash11) function copyRowTo(row : UInt, vector3D : Vector3D) : Void;
 	function createBox(scaleX : Float, scaleY : Float, rotation : Float = 0, tx : Float = 0, ty : Float = 0) : Void;
 	function createBox(scaleX : Float, scaleY : Float, rotation : Float = 0, tx : Float = 0, ty : Float = 0) : Void;
 	function createGradientBox(width : Float, height : Float, rotation : Float = 0, tx : Float = 0, ty : Float = 0) : Void;
 	function createGradientBox(width : Float, height : Float, rotation : Float = 0, tx : Float = 0, ty : Float = 0) : Void;
 	function deltaTransformPoint(point : Point) : Point;
 	function deltaTransformPoint(point : Point) : Point;
@@ -17,6 +22,7 @@ extern class Matrix {
 	function invert() : Void;
 	function invert() : Void;
 	function rotate(angle : Float) : Void;
 	function rotate(angle : Float) : Void;
 	function scale(sx : Float, sy : Float) : Void;
 	function scale(sx : Float, sy : Float) : Void;
+	@:require(flash11) function setTo(aa : Float, ba : Float, ca : Float, da : Float, txa : Float, tya : Float) : Void;
 	function toString() : String;
 	function toString() : String;
 	function transformPoint(point : Point) : Point;
 	function transformPoint(point : Point) : Point;
 	function translate(dx : Float, dy : Float) : Void;
 	function translate(dx : Float, dy : Float) : Void;

+ 8 - 0
std/flash9/geom/Matrix3D.hx

@@ -10,6 +10,14 @@ package flash.geom;
 	function appendScale(xScale : Float, yScale : Float, zScale : Float) : Void;
 	function appendScale(xScale : Float, yScale : Float, zScale : Float) : Void;
 	function appendTranslation(x : Float, y : Float, z : Float) : Void;
 	function appendTranslation(x : Float, y : Float, z : Float) : Void;
 	function clone() : Matrix3D;
 	function clone() : Matrix3D;
+	@:require(flash11) function copyColumnFrom(column : UInt, vector3D : Vector3D) : Void;
+	@:require(flash11) function copyColumnTo(column : UInt, vector3D : Vector3D) : Void;
+	@:require(flash11) function copyFrom(sourceMatrix3D : Matrix3D) : Void;
+	@:require(flash11) function copyRawDataFrom(vector : flash.Vector<Float>, index : UInt = 0, transpose : Bool = false) : Void;
+	@:require(flash11) function copyRawDataTo(vector : flash.Vector<Float>, index : UInt = 0, transpose : Bool = false) : Void;
+	@:require(flash11) function copyRowFrom(row : UInt, vector3D : Vector3D) : Void;
+	@:require(flash11) function copyRowTo(row : UInt, vector3D : Vector3D) : Void;
+	@:require(flash11) function copyToMatrix3D(dest : Matrix3D) : Void;
 	function decompose(?orientationStyle : Orientation3D) : flash.Vector<Vector3D>;
 	function decompose(?orientationStyle : Orientation3D) : flash.Vector<Vector3D>;
 	function deltaTransformVector(v : Vector3D) : Vector3D;
 	function deltaTransformVector(v : Vector3D) : Vector3D;
 	function identity() : Void;
 	function identity() : Void;

+ 2 - 0
std/flash9/geom/Point.hx

@@ -7,9 +7,11 @@ extern class Point {
 	function new(x : Float = 0, y : Float = 0) : Void;
 	function new(x : Float = 0, y : Float = 0) : Void;
 	function add(v : Point) : Point;
 	function add(v : Point) : Point;
 	function clone() : Point;
 	function clone() : Point;
+	@:require(flash11) function copyFrom(sourcePoint : Point) : Void;
 	function equals(toCompare : Point) : Bool;
 	function equals(toCompare : Point) : Bool;
 	function normalize(thickness : Float) : Void;
 	function normalize(thickness : Float) : Void;
 	function offset(dx : Float, dy : Float) : Void;
 	function offset(dx : Float, dy : Float) : Void;
+	@:require(flash11) function setTo(xa : Float, ya : Float) : Void;
 	function subtract(v : Point) : Point;
 	function subtract(v : Point) : Point;
 	function toString() : String;
 	function toString() : String;
 	static function distance(pt1 : Point, pt2 : Point) : Float;
 	static function distance(pt1 : Point, pt2 : Point) : Float;

+ 2 - 0
std/flash9/geom/Rectangle.hx

@@ -17,6 +17,7 @@ extern class Rectangle {
 	function contains(x : Float, y : Float) : Bool;
 	function contains(x : Float, y : Float) : Bool;
 	function containsPoint(point : Point) : Bool;
 	function containsPoint(point : Point) : Bool;
 	function containsRect(rect : Rectangle) : Bool;
 	function containsRect(rect : Rectangle) : Bool;
+	@:require(flash11) function copyFrom(sourceRect : Rectangle) : Void;
 	function equals(toCompare : Rectangle) : Bool;
 	function equals(toCompare : Rectangle) : Bool;
 	function inflate(dx : Float, dy : Float) : Void;
 	function inflate(dx : Float, dy : Float) : Void;
 	function inflatePoint(point : Point) : Void;
 	function inflatePoint(point : Point) : Void;
@@ -26,6 +27,7 @@ extern class Rectangle {
 	function offset(dx : Float, dy : Float) : Void;
 	function offset(dx : Float, dy : Float) : Void;
 	function offsetPoint(point : Point) : Void;
 	function offsetPoint(point : Point) : Void;
 	function setEmpty() : Void;
 	function setEmpty() : Void;
+	@:require(flash11) function setTo(xa : Float, ya : Float, widtha : Float, heighta : Float) : Void;
 	function toString() : String;
 	function toString() : String;
 	function union(toUnion : Rectangle) : Rectangle;
 	function union(toUnion : Rectangle) : Rectangle;
 }
 }

+ 2 - 0
std/flash9/geom/Vector3D.hx

@@ -10,6 +10,7 @@ package flash.geom;
 	function new(x : Float = 0, y : Float = 0, z : Float = 0, w : Float = 0) : Void;
 	function new(x : Float = 0, y : Float = 0, z : Float = 0, w : Float = 0) : Void;
 	function add(a : Vector3D) : Vector3D;
 	function add(a : Vector3D) : Vector3D;
 	function clone() : Vector3D;
 	function clone() : Vector3D;
+	@:require(flash11) function copyFrom(sourceVector3D : Vector3D) : Void;
 	function crossProduct(a : Vector3D) : Vector3D;
 	function crossProduct(a : Vector3D) : Vector3D;
 	function decrementBy(a : Vector3D) : Void;
 	function decrementBy(a : Vector3D) : Void;
 	function dotProduct(a : Vector3D) : Float;
 	function dotProduct(a : Vector3D) : Float;
@@ -20,6 +21,7 @@ package flash.geom;
 	function normalize() : Float;
 	function normalize() : Float;
 	function project() : Void;
 	function project() : Void;
 	function scaleBy(s : Float) : Void;
 	function scaleBy(s : Float) : Void;
+	@:require(flash11) function setTo(xa : Float, ya : Float, za : Float) : Void;
 	function subtract(a : Vector3D) : Vector3D;
 	function subtract(a : Vector3D) : Vector3D;
 	function toString() : String;
 	function toString() : String;
 	static var X_AXIS : Vector3D;
 	static var X_AXIS : Vector3D;