فهرست منبع

updated api (with gen-hx-classes)

Nicolas Cannasse 17 سال پیش
والد
کامیت
4beaa2c6f4
100فایلهای تغییر یافته به همراه282 افزوده شده و 368 حذف شده
  1. 1 0
      std/flash/Boot.hx
  2. 12 0
      std/flash9/Error.hx
  3. 0 1
      std/flash9/accessibility/Accessibility.hx
  4. 2 2
      std/flash9/accessibility/AccessibilityImplementation.hx
  5. 1 1
      std/flash9/accessibility/AccessibilityProperties.hx
  6. 2 7
      std/flash9/display/AVM1Movie.hx
  7. 3 3
      std/flash9/display/Bitmap.hx
  8. 1 3
      std/flash9/display/BitmapData.hx
  9. 1 1
      std/flash9/display/DisplayObject.hx
  10. 15 15
      std/flash9/display/DisplayObjectContainer.hx
  11. 1 3
      std/flash9/display/FrameLabel.hx
  12. 2 2
      std/flash9/display/InteractiveObject.hx
  13. 3 6
      std/flash9/display/Loader.hx
  14. 4 8
      std/flash9/display/LoaderInfo.hx
  15. 1 2
      std/flash9/display/MorphShape.hx
  16. 7 7
      std/flash9/display/MovieClip.hx
  17. 1 4
      std/flash9/display/Scene.hx
  18. 2 2
      std/flash9/display/Shape.hx
  19. 1 2
      std/flash9/display/SimpleButton.hx
  20. 2 3
      std/flash9/display/Sprite.hx
  21. 4 0
      std/flash9/errors/EOFError.hx
  22. 4 0
      std/flash9/errors/IOError.hx
  23. 4 0
      std/flash9/errors/IllegalOperationError.hx
  24. 4 0
      std/flash9/errors/InvalidSWFError.hx
  25. 4 0
      std/flash9/errors/MemoryError.hx
  26. 4 0
      std/flash9/errors/ScriptTimeoutError.hx
  27. 4 0
      std/flash9/errors/StackOverflowError.hx
  28. 2 3
      std/flash9/events/ActivityEvent.hx
  29. 3 3
      std/flash9/events/AsyncErrorEvent.hx
  30. 2 4
      std/flash9/events/ContextMenuEvent.hx
  31. 2 2
      std/flash9/events/DataEvent.hx
  32. 1 1
      std/flash9/events/ErrorEvent.hx
  33. 5 5
      std/flash9/events/Event.hx
  34. 2 3
      std/flash9/events/EventDispatcher.hx
  35. 4 5
      std/flash9/events/EventPhase.hx
  36. 2 5
      std/flash9/events/FocusEvent.hx
  37. 4 4
      std/flash9/events/FullScreenEvent.hx
  38. 2 3
      std/flash9/events/HTTPStatusEvent.hx
  39. 1 1
      std/flash9/events/IEventDispatcher.hx
  40. 1 1
      std/flash9/events/IMEEvent.hx
  41. 1 1
      std/flash9/events/IOErrorEvent.hx
  42. 3 9
      std/flash9/events/KeyboardEvent.hx
  43. 2 12
      std/flash9/events/MouseEvent.hx
  44. 2 2
      std/flash9/events/NetFilterEvent.hx
  45. 2 3
      std/flash9/events/NetStatusEvent.hx
  46. 2 4
      std/flash9/events/ProgressEvent.hx
  47. 1 1
      std/flash9/events/SecurityErrorEvent.hx
  48. 2 4
      std/flash9/events/StatusEvent.hx
  49. 2 3
      std/flash9/events/SyncEvent.hx
  50. 2 3
      std/flash9/events/TextEvent.hx
  51. 1 1
      std/flash9/events/TimerEvent.hx
  52. 0 1
      std/flash9/events/WeakFunctionClosure.hx
  53. 3 24
      std/flash9/external/ExternalInterface.hx
  54. 2 2
      std/flash9/filters/BevelFilter.hx
  55. 1 1
      std/flash9/filters/BitmapFilter.hx
  56. 4 5
      std/flash9/filters/BitmapFilterQuality.hx
  57. 4 5
      std/flash9/filters/BitmapFilterType.hx
  58. 2 2
      std/flash9/filters/BlurFilter.hx
  59. 2 2
      std/flash9/filters/ColorMatrixFilter.hx
  60. 3 3
      std/flash9/filters/ConvolutionFilter.hx
  61. 3 3
      std/flash9/filters/DisplacementMapFilter.hx
  62. 5 6
      std/flash9/filters/DisplacementMapFilterMode.hx
  63. 2 2
      std/flash9/filters/DropShadowFilter.hx
  64. 2 2
      std/flash9/filters/GlowFilter.hx
  65. 2 2
      std/flash9/filters/GradientBevelFilter.hx
  66. 2 2
      std/flash9/filters/GradientGlowFilter.hx
  67. 2 2
      std/flash9/geom/ColorTransform.hx
  68. 8 8
      std/flash9/geom/Matrix.hx
  69. 10 10
      std/flash9/geom/Point.hx
  70. 19 19
      std/flash9/geom/Rectangle.hx
  71. 5 5
      std/flash9/geom/Transform.hx
  72. 3 3
      std/flash9/media/Camera.hx
  73. 1 1
      std/flash9/media/ID3Info.hx
  74. 6 9
      std/flash9/media/Microphone.hx
  75. 4 7
      std/flash9/media/Sound.hx
  76. 2 2
      std/flash9/media/SoundChannel.hx
  77. 1 1
      std/flash9/media/SoundLoaderContext.hx
  78. 2 3
      std/flash9/media/SoundMixer.hx
  79. 1 1
      std/flash9/media/SoundTransform.hx
  80. 4 4
      std/flash9/media/Video.hx
  81. 1 1
      std/flash9/net/FileFilter.hx
  82. 2 6
      std/flash9/net/FileReference.hx
  83. 1 1
      std/flash9/net/FileReferenceList.hx
  84. 1 1
      std/flash9/net/IDynamicPropertyWriter.hx
  85. 2 2
      std/flash9/net/LocalConnection.hx
  86. 1 5
      std/flash9/net/NetConnection.hx
  87. 0 1
      std/flash9/net/NetStream.hx
  88. 1 2
      std/flash9/net/ObjectEncoding.hx
  89. 8 17
      std/flash9/net/SharedObject.hx
  90. 3 4
      std/flash9/net/SharedObjectFlushStatus.hx
  91. 4 8
      std/flash9/net/URLLoader.hx
  92. 4 5
      std/flash9/net/URLLoaderDataFormat.hx
  93. 1 3
      std/flash9/net/URLRequest.hx
  94. 1 1
      std/flash9/net/URLRequestHeader.hx
  95. 0 1
      std/flash9/net/URLRequestMethod.hx
  96. 1 1
      std/flash9/net/URLStream.hx
  97. 0 1
      std/flash9/net/URLVariables.hx
  98. 1 1
      std/flash9/net/XMLSocket.hx
  99. 3 14
      std/flash9/printing/PrintJob.hx
  100. 1 1
      std/flash9/printing/PrintJobOptions.hx

+ 1 - 0
std/flash/Boot.hx

@@ -27,6 +27,7 @@ package flash;
 class Boot {
 
 	private static var def_color = 0;
+	private static var exception = null;
 
 	private static function __string_rec(o : Dynamic,s : String) {
 		untyped {

+ 12 - 0
std/flash9/Error.hx

@@ -0,0 +1,12 @@
+package flash;
+
+extern class Error {
+	var errorID(default,null) : Int;
+	var message : Dynamic;
+	var name : Dynamic;
+	function new(?message : String, ?id : Int) : Void;
+	function getStackTrace() : String;
+	static var length : Int;
+	static function getErrorMessage(index : Int) : String;
+	static function throwError(type : Class<Dynamic>, index : UInt, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Dynamic;
+}

+ 0 - 1
std/flash9/accessibility/Accessibility.hx

@@ -1,7 +1,6 @@
 package flash.accessibility;
 
 extern class Accessibility {
-	function new() : Void;
 	static var active(default,null) : Bool;
 	static function sendEvent(source : flash.display.DisplayObject, childID : UInt, eventType : UInt, ?nonHTML : Bool) : Void;
 	static function updateProperties() : Void;

+ 2 - 2
std/flash9/accessibility/AccessibilityImplementation.hx

@@ -1,11 +1,12 @@
 package flash.accessibility;
 
 extern class AccessibilityImplementation {
+	var errno : UInt;
+	var stub : Bool;
 	function new() : Void;
 	function accDoDefaultAction(childID : UInt) : Void;
 	function accLocation(childID : UInt) : Dynamic;
 	function accSelect(operation : UInt, childID : UInt) : Void;
-	var errno : UInt;
 	function getChildIDArray() : Array<Dynamic>;
 	function get_accDefaultAction(childID : UInt) : String;
 	function get_accFocus() : UInt;
@@ -15,5 +16,4 @@ extern class AccessibilityImplementation {
 	function get_accState(childID : UInt) : UInt;
 	function get_accValue(childID : UInt) : String;
 	function isLabeledBy(labelBounds : flash.geom.Rectangle) : Bool;
-	var stub : Bool;
 }

+ 1 - 1
std/flash9/accessibility/AccessibilityProperties.hx

@@ -1,11 +1,11 @@
 package flash.accessibility;
 
 extern class AccessibilityProperties {
-	function new() : Void;
 	var description : String;
 	var forceSimple : Bool;
 	var name : String;
 	var noAutoLabeling : Bool;
 	var shortcut : String;
 	var silent : Bool;
+	function new() : Void;
 }

+ 2 - 7
std/flash9/display/AVM1Movie.hx

@@ -1,12 +1,7 @@
 package flash.display;
 
-extern class AVM1Movie extends flash.display.DisplayObject {
+extern class AVM1Movie extends DisplayObject {
 	function new() : Void;
 	function addCallback(functionName : String, closure : Dynamic) : Void;
-	function call(functionName : String, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
-	private function _callAS2(functionName : String, arguments : flash.utils.ByteArray) : flash.utils.ByteArray;
-	private function _callAS3(functionName : String, data : flash.utils.ByteArray) : Void;
-	private var _interopAvailable(default,null) : Bool;
-	private function _setCallAS3(closure : Dynamic) : Void;
-	private var callbackTable : Dynamic;
+	function call(functionName : String, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Dynamic;
 }

+ 3 - 3
std/flash9/display/Bitmap.hx

@@ -1,8 +1,8 @@
 package flash.display;
 
-extern class Bitmap extends flash.display.DisplayObject {
-	function new(?bitmapData : flash.display.BitmapData, ?pixelSnapping : PixelSnapping, ?smoothing : Bool) : Void;
-	var bitmapData : flash.display.BitmapData;
+extern class Bitmap extends DisplayObject {
+	var bitmapData : BitmapData;
 	var pixelSnapping : PixelSnapping;
 	var smoothing : Bool;
+	function new(?bitmapData : BitmapData, ?pixelSnapping : PixelSnapping, ?smoothing : Bool) : Void;
 }

+ 1 - 3
std/flash9/display/BitmapData.hx

@@ -1,12 +1,10 @@
 package flash.display;
 
 extern class BitmapData implements IBitmapDrawable {
-
-	var width(default,null) : Int;
 	var height(default,null) : Int;
 	var rect(default,null) : flash.geom.Rectangle;
 	var transparent(default,null) : Bool;
-
+	var width(default,null) : Int;
 	function new(width : Int, height : Int, ?transparent : Bool, ?fillColor : UInt) : Void;
 	function applyFilter(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, filter : flash.filters.BitmapFilter) : Void;
 	function clone() : BitmapData;

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

@@ -5,7 +5,7 @@ extern class DisplayObject extends flash.events.EventDispatcher, implements IBit
 	var alpha : Float;
 	var blendMode : BlendMode;
 	var cacheAsBitmap : Bool;
-	var filters : Array<Dynamic>; // does not use variance here
+	var filters : Array<Dynamic>;
 	var height : Float;
 	var loaderInfo(default,null) : LoaderInfo;
 	var mask : DisplayObject;

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

@@ -1,22 +1,22 @@
 package flash.display;
 
-extern class DisplayObjectContainer extends flash.display.InteractiveObject {
-	function new() : Void;
-	function addChild(child : flash.display.DisplayObject) : flash.display.DisplayObject;
-	function addChildAt(child : flash.display.DisplayObject, index : Int) : flash.display.DisplayObject;
-	function areInaccessibleObjectsUnderPoint(point : flash.geom.Point) : Bool;
-	function contains(child : flash.display.DisplayObject) : Bool;
-	function getChildAt(index : Int) : flash.display.DisplayObject;
-	function getChildByName(name : String) : flash.display.DisplayObject;
-	function getChildIndex(child : flash.display.DisplayObject) : Int;
-	function getObjectsUnderPoint(point : flash.geom.Point) : Array<DisplayObject>;
+extern class DisplayObjectContainer extends InteractiveObject {
 	var mouseChildren : Bool;
 	var numChildren(default,null) : Int;
-	function removeChild(child : flash.display.DisplayObject) : flash.display.DisplayObject;
-	function removeChildAt(index : Int) : flash.display.DisplayObject;
-	function setChildIndex(child : flash.display.DisplayObject, index : Int) : Void;
-	function swapChildren(child1 : flash.display.DisplayObject, child2 : flash.display.DisplayObject) : Void;
-	function swapChildrenAt(index1 : Int, index2 : Int) : Void;
 	var tabChildren : Bool;
 	var textSnapshot(default,null) : flash.text.TextSnapshot;
+	function new() : Void;
+	function addChild(child : DisplayObject) : DisplayObject;
+	function addChildAt(child : DisplayObject, index : Int) : DisplayObject;
+	function areInaccessibleObjectsUnderPoint(point : flash.geom.Point) : Bool;
+	function contains(child : DisplayObject) : Bool;
+	function getChildAt(index : Int) : DisplayObject;
+	function getChildByName(name : String) : DisplayObject;
+	function getChildIndex(child : DisplayObject) : Int;
+	function getObjectsUnderPoint(point : flash.geom.Point) : Array<DisplayObject>;
+	function removeChild(child : DisplayObject) : DisplayObject;
+	function removeChildAt(index : Int) : DisplayObject;
+	function setChildIndex(child : DisplayObject, index : Int) : Void;
+	function swapChildren(child1 : DisplayObject, child2 : DisplayObject) : Void;
+	function swapChildrenAt(index1 : Int, index2 : Int) : Void;
 }

+ 1 - 3
std/flash9/display/FrameLabel.hx

@@ -1,9 +1,7 @@
 package flash.display;
 
 extern class FrameLabel {
-	function new(name : String, frame : Int) : Void;
 	var frame(default,null) : Int;
 	var name(default,null) : String;
-	private var _frame : Int;
-	private var _name : String;
+	function new(name : String, frame : Int) : Void;
 }

+ 2 - 2
std/flash9/display/InteractiveObject.hx

@@ -1,7 +1,6 @@
 package flash.display;
 
-extern class InteractiveObject extends flash.display.DisplayObject {
-	function new() : Void;
+extern class InteractiveObject extends DisplayObject {
 	var accessibilityImplementation : flash.accessibility.AccessibilityImplementation;
 	var contextMenu : flash.ui.ContextMenu;
 	var doubleClickEnabled : Bool;
@@ -9,4 +8,5 @@ extern class InteractiveObject extends flash.display.DisplayObject {
 	var mouseEnabled : Bool;
 	var tabEnabled : Bool;
 	var tabIndex : Int;
+	function new() : Void;
 }

+ 3 - 6
std/flash9/display/Loader.hx

@@ -1,14 +1,11 @@
 package flash.display;
 
-extern class Loader extends flash.display.DisplayObjectContainer {
+extern class Loader extends DisplayObjectContainer {
+	var content(default,null) : DisplayObject;
+	var contentLoaderInfo(default,null) : LoaderInfo;
 	function new() : Void;
 	function close() : Void;
-	var content(default,null) : flash.display.DisplayObject;
-	var contentLoaderInfo(default,null) : flash.display.LoaderInfo;
 	function load(request : flash.net.URLRequest, ?context : flash.system.LoaderContext) : Void;
 	function loadBytes(bytes : flash.utils.ByteArray, ?context : flash.system.LoaderContext) : Void;
 	function unload() : Void;
-	private function _buildLoaderContext(context : flash.system.LoaderContext) : flash.system.LoaderContext;
-	private function _load(request : flash.net.URLRequest, checkPolicyFile : Bool, applicationDomain : flash.system.ApplicationDomain, securityDomain : flash.system.SecurityDomain) : Void;
-	private function _loadBytes(bytes : flash.utils.ByteArray, checkPolicyFile : Bool, applicationDomain : flash.system.ApplicationDomain, securityDomain : flash.system.SecurityDomain) : Void;
 }

+ 4 - 8
std/flash9/display/LoaderInfo.hx

@@ -3,14 +3,16 @@ package flash.display;
 extern class LoaderInfo extends flash.events.EventDispatcher {
 	var actionScriptVersion(default,null) : ActionScriptVersion;
 	var applicationDomain(default,null) : flash.system.ApplicationDomain;
+	/** new in FP 9.0.115 **/
+	var bytes(default,null) : flash.utils.ByteArray;
 	var bytesLoaded(default,null) : UInt;
 	var bytesTotal(default,null) : UInt;
 	var childAllowsParent(default,null) : Bool;
-	var content(default,null) : flash.display.DisplayObject;
+	var content(default,null) : DisplayObject;
 	var contentType(default,null) : String;
 	var frameRate(default,null) : Float;
 	var height(default,null) : Int;
-	var loader(default,null) : flash.display.Loader;
+	var loader(default,null) : Loader;
 	var loaderURL(default,null) : String;
 	var parameters(default,null) : Dynamic<String>;
 	var parentAllowsChild(default,null) : Bool;
@@ -19,12 +21,6 @@ extern class LoaderInfo extends flash.events.EventDispatcher {
 	var swfVersion(default,null) : SWFVersion;
 	var url(default,null) : String;
 	var width(default,null) : Int;
-	private function _getArgs() : Dynamic;
-
-	/** new in FP 9.0.115 **/
-	var bytes(default,null) : flash.utils.ByteArray;
-
 	/** new in FP 9.0.115 **/
 	static function getLoaderInfoByDefinition(object : Dynamic) : flash.display.LoaderInfo;
-
 }

+ 1 - 2
std/flash9/display/MorphShape.hx

@@ -1,5 +1,4 @@
 package flash.display;
 
-extern class MorphShape extends flash.display.DisplayObject {
-	function new() : Void;
+extern class MorphShape extends DisplayObject {
 }

+ 7 - 7
std/flash9/display/MovieClip.hx

@@ -1,14 +1,17 @@
 package flash.display;
 
-extern class MovieClip extends flash.display.Sprite {
-	function new() : Void;
-	function addFrameScript( ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
+extern class MovieClip extends Sprite {
 	var currentFrame(default,null) : Int;
 	var currentLabel(default,null) : String;
 	var currentLabels(default,null) : Array<FrameLabel>;
-	var currentScene(default,null) : flash.display.Scene;
+	var currentScene(default,null) : Scene;
 	var enabled : Bool;
 	var framesLoaded(default,null) : Int;
+	var scenes(default,null) : Array<Scene>;
+	var totalFrames(default,null) : Int;
+	var trackAsMenu : Bool;
+	function new() : Void;
+	function addFrameScript( ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
 	function gotoAndPlay(frame : Dynamic, ?scene : String) : Void;
 	function gotoAndStop(frame : Dynamic, ?scene : String) : Void;
 	function nextFrame() : Void;
@@ -16,8 +19,5 @@ extern class MovieClip extends flash.display.Sprite {
 	function play() : Void;
 	function prevFrame() : Void;
 	function prevScene() : Void;
-	var scenes(default,null) : Array<Scene>;
 	function stop() : Void;
-	var totalFrames(default,null) : Int;
-	var trackAsMenu : Bool;
 }

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

@@ -1,11 +1,8 @@
 package flash.display;
 
 extern class Scene {
-	function new(name : String, labels : Array<FrameLabel>, numFrames : Int) : Void;
 	var labels(default,null) : Array<FrameLabel>;
 	var name(default,null) : String;
 	var numFrames(default,null) : Int;
-	private var _labels : Array<FrameLabel>;
-	private var _name : String;
-	private var _numFrames : Int;
+	function new(name : String, labels : Array<FrameLabel>, numFrames : Int) : Void;
 }

+ 2 - 2
std/flash9/display/Shape.hx

@@ -1,6 +1,6 @@
 package flash.display;
 
-extern class Shape extends flash.display.DisplayObject {
+extern class Shape extends DisplayObject {
+	var graphics(default,null) : Graphics;
 	function new() : Void;
-	var graphics(default,null) : flash.display.Graphics;
 }

+ 1 - 2
std/flash9/display/SimpleButton.hx

@@ -1,7 +1,6 @@
 package flash.display;
 
 extern class SimpleButton extends InteractiveObject {
-	function new(?upState : DisplayObject, ?overState : DisplayObject, ?downState : DisplayObject, ?hitTestState : DisplayObject) : Void;
 	var downState : DisplayObject;
 	var enabled : Bool;
 	var hitTestState : DisplayObject;
@@ -10,5 +9,5 @@ extern class SimpleButton extends InteractiveObject {
 	var trackAsMenu : Bool;
 	var upState : DisplayObject;
 	var useHandCursor : Bool;
-	private function _updateButton() : Void;
+	function new(?upState : DisplayObject, ?overState : DisplayObject, ?downState : DisplayObject, ?hitTestState : DisplayObject) : Void;
 }

+ 2 - 3
std/flash9/display/Sprite.hx

@@ -1,14 +1,13 @@
 package flash.display;
 
 extern class Sprite extends DisplayObjectContainer {
-	function new() : Void;
 	var buttonMode : Bool;
 	var dropTarget(default,null) : DisplayObject;
 	var graphics(default,null) : Graphics;
 	var hitArea : Sprite;
 	var soundTransform : flash.media.SoundTransform;
+	var useHandCursor : Bool;
+	function new() : Void;
 	function startDrag(?lockCenter : Bool, ?bounds : flash.geom.Rectangle) : Void;
 	function stopDrag() : Void;
-	var useHandCursor : Bool;
-	private function constructChildren() : Void;
 }

+ 4 - 0
std/flash9/errors/EOFError.hx

@@ -0,0 +1,4 @@
+package flash.errors;
+
+extern class EOFError extends IOError {
+}

+ 4 - 0
std/flash9/errors/IOError.hx

@@ -0,0 +1,4 @@
+package flash.errors;
+
+extern class IOError extends flash.Error {
+}

+ 4 - 0
std/flash9/errors/IllegalOperationError.hx

@@ -0,0 +1,4 @@
+package flash.errors;
+
+extern class IllegalOperationError extends flash.Error {
+}

+ 4 - 0
std/flash9/errors/InvalidSWFError.hx

@@ -0,0 +1,4 @@
+package flash.errors;
+
+extern class InvalidSWFError extends flash.Error {
+}

+ 4 - 0
std/flash9/errors/MemoryError.hx

@@ -0,0 +1,4 @@
+package flash.errors;
+
+extern class MemoryError extends flash.Error {
+}

+ 4 - 0
std/flash9/errors/ScriptTimeoutError.hx

@@ -0,0 +1,4 @@
+package flash.errors;
+
+extern class ScriptTimeoutError extends flash.Error {
+}

+ 4 - 0
std/flash9/errors/StackOverflowError.hx

@@ -0,0 +1,4 @@
+package flash.errors;
+
+extern class StackOverflowError extends flash.Error {
+}

+ 2 - 3
std/flash9/events/ActivityEvent.hx

@@ -1,8 +1,7 @@
 package flash.events;
 
-extern class ActivityEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?activating : Bool) : Void;
+extern class ActivityEvent extends Event {
 	var activating : Bool;
-	private var m_activating : Bool;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?activating : Bool) : Void;
 	static var ACTIVITY : String;
 }

+ 3 - 3
std/flash9/events/AsyncErrorEvent.hx

@@ -1,7 +1,7 @@
 package flash.events;
 
-extern class AsyncErrorEvent extends flash.events.ErrorEvent {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?text : String, ?error : Dynamic) : Void;
-	var error : Dynamic;
+extern class AsyncErrorEvent extends ErrorEvent {
+	var error : flash.Error;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?text : String, ?error : flash.Error) : Void;
 	static var ASYNC_ERROR : String;
 }

+ 2 - 4
std/flash9/events/ContextMenuEvent.hx

@@ -1,11 +1,9 @@
 package flash.events;
 
-extern class ContextMenuEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?mouseTarget : flash.display.InteractiveObject, ?contextMenuOwner : flash.display.InteractiveObject) : Void;
+extern class ContextMenuEvent extends Event {
 	var contextMenuOwner : flash.display.InteractiveObject;
 	var mouseTarget : flash.display.InteractiveObject;
-	private var m_contextMenuOwner : flash.display.InteractiveObject;
-	private var m_mouseTarget : flash.display.InteractiveObject;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?mouseTarget : flash.display.InteractiveObject, ?contextMenuOwner : flash.display.InteractiveObject) : Void;
 	static var MENU_ITEM_SELECT : String;
 	static var MENU_SELECT : String;
 }

+ 2 - 2
std/flash9/events/DataEvent.hx

@@ -1,8 +1,8 @@
 package flash.events;
 
-extern class DataEvent extends flash.events.TextEvent {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?data : String) : Void;
+extern class DataEvent extends TextEvent {
 	var data : String;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?data : String) : Void;
 	static var DATA : String;
 	static var UPLOAD_COMPLETE_DATA : String;
 }

+ 1 - 1
std/flash9/events/ErrorEvent.hx

@@ -1,6 +1,6 @@
 package flash.events;
 
-extern class ErrorEvent extends flash.events.TextEvent {
+extern class ErrorEvent extends TextEvent {
 	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?text : String) : Void;
 	static var ERROR : String;
 }

+ 5 - 5
std/flash9/events/Event.hx

@@ -1,20 +1,20 @@
 package flash.events;
 
 extern class Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool) : Void;
 	var bubbles(default,null) : Bool;
 	var cancelable(default,null) : Bool;
-	function clone() : flash.events.Event;
 	var currentTarget(default,null) : Dynamic;
-	var eventPhase(default,null) : UInt;
+	var eventPhase(default,null) : EventPhase;
+	var target(default,null) : Dynamic;
+	var type(default,null) : String;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool) : Void;
+	function clone() : Event;
 	function formatToString(className : String, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : String;
 	function isDefaultPrevented() : Bool;
 	function preventDefault() : Void;
 	function stopImmediatePropagation() : Void;
 	function stopPropagation() : Void;
-	var target(default,null) : Dynamic;
 	function toString() : String;
-	var type(default,null) : String;
 	static var ACTIVATE : String;
 	static var ADDED : String;
 	static var CANCEL : String;

+ 2 - 3
std/flash9/events/EventDispatcher.hx

@@ -1,12 +1,11 @@
 package flash.events;
 
-extern class EventDispatcher implements flash.events.IEventDispatcher {
+extern class EventDispatcher implements IEventDispatcher {
 	function new(?target : flash.events.IEventDispatcher) : Void;
 	function addEventListener(type : String, listener : Dynamic -> Void, ?useCapture : Bool, ?priority : Int, ?useWeakReference : Bool) : Void;
-	function dispatchEvent(event : flash.events.Event) : Bool;
+	function dispatchEvent(event : Event) : Bool;
 	function hasEventListener(type : String) : Bool;
 	function removeEventListener(type : String, listener : Dynamic -> Void, ?useCapture : Bool) : Void;
 	function toString() : String;
 	function willTrigger(type : String) : Bool;
-	private function dispatchEventFunction(event : flash.events.Event) : Bool;
 }

+ 4 - 5
std/flash9/events/EventPhase.hx

@@ -1,8 +1,7 @@
 package flash.events;
 
-extern class EventPhase {
-	function new() : Void;
-	static var AT_TARGET : UInt;
-	static var BUBBLING_PHASE : UInt;
-	static var CAPTURING_PHASE : UInt;
+extern enum EventPhase {
+	AT_TARGET;
+	BUBBLING_PHASE;
+	CAPTURING_PHASE;
 }

+ 2 - 5
std/flash9/events/FocusEvent.hx

@@ -1,13 +1,10 @@
 package flash.events;
 
-extern class FocusEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?relatedObject : flash.display.InteractiveObject, ?shiftKey : Bool, ?keyCode : UInt) : Void;
+extern class FocusEvent extends Event {
 	var keyCode : UInt;
 	var relatedObject : flash.display.InteractiveObject;
 	var shiftKey : Bool;
-	private var m_keyCode : UInt;
-	private var m_relatedObject : flash.display.InteractiveObject;
-	private var m_shiftKey : Bool;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?relatedObject : flash.display.InteractiveObject, ?shiftKey : Bool, ?keyCode : UInt) : Void;
 	static var FOCUS_IN : String;
 	static var FOCUS_OUT : String;
 	static var KEY_FOCUS_CHANGE : String;

+ 4 - 4
std/flash9/events/FullScreenEvent.hx

@@ -1,7 +1,7 @@
 package flash.events;
 
-extern class FullScreenEvent extends flash.events.ActivityEvent {
-		var fullScreen(default,null) : Bool;
-		function new(type:String, ?bubbles:Bool, ?cancelable:Bool, ?fullScreen:Bool ) : Void;
-		static var FULL_SCREEN : String;
+extern class FullScreenEvent extends ActivityEvent {
+	var fullScreen(default,null) : Bool;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?fullScreen : Bool) : Void;
+	static var FULL_SCREEN : String;
 }

+ 2 - 3
std/flash9/events/HTTPStatusEvent.hx

@@ -1,8 +1,7 @@
 package flash.events;
 
-extern class HTTPStatusEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?status : Int) : Void;
+extern class HTTPStatusEvent extends Event {
 	var status(default,null) : Int;
-	private var m_status : Int;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?status : Int) : Void;
 	static var HTTP_STATUS : String;
 }

+ 1 - 1
std/flash9/events/IEventDispatcher.hx

@@ -2,7 +2,7 @@ package flash.events;
 
 extern interface IEventDispatcher {
 	function addEventListener(type : String, listener : Dynamic -> Void, ?useCapture : Bool, ?priority : Int, ?useWeakReference : Bool) : Void;
-	function dispatchEvent(event : flash.events.Event) : Bool;
+	function dispatchEvent(event : Event) : Bool;
 	function hasEventListener(type : String) : Bool;
 	function removeEventListener(type : String, listener : Dynamic -> Void, ?useCapture : Bool) : Void;
 	function willTrigger(type : String) : Bool;

+ 1 - 1
std/flash9/events/IMEEvent.hx

@@ -1,6 +1,6 @@
 package flash.events;
 
-extern class IMEEvent extends flash.events.TextEvent {
+extern class IMEEvent extends TextEvent {
 	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?text : String) : Void;
 	static var IME_COMPOSITION : String;
 }

+ 1 - 1
std/flash9/events/IOErrorEvent.hx

@@ -1,6 +1,6 @@
 package flash.events;
 
-extern class IOErrorEvent extends flash.events.ErrorEvent {
+extern class IOErrorEvent extends ErrorEvent {
 	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?text : String) : Void;
 	static var DISK_ERROR : String;
 	static var IO_ERROR : String;

+ 3 - 9
std/flash9/events/KeyboardEvent.hx

@@ -1,20 +1,14 @@
 package flash.events;
 
-extern class KeyboardEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?charCode : UInt, ?keyCode : UInt, ?keyLocation : UInt, ?ctrlKey : Bool, ?altKey : Bool, ?shiftKey : Bool) : Void;
+extern class KeyboardEvent extends Event {
 	var altKey : Bool;
 	var charCode : UInt;
 	var ctrlKey : Bool;
 	var keyCode : UInt;
-	var keyLocation : UInt;
+	var keyLocation : flash.ui.KeyLocation;
 	var shiftKey : Bool;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?charCode : UInt, ?keyCode : UInt, ?keyLocation : flash.ui.KeyLocation, ?ctrlKey : Bool, ?altKey : Bool, ?shiftKey : Bool) : Void;
 	function updateAfterEvent() : Void;
-	private var m_altKey : Bool;
-	private var m_charCode : UInt;
-	private var m_ctrlKey : Bool;
-	private var m_keyCode : UInt;
-	private var m_keyLocation : UInt;
-	private var m_shiftKey : Bool;
 	static var KEY_DOWN : String;
 	static var KEY_UP : String;
 }

+ 2 - 12
std/flash9/events/MouseEvent.hx

@@ -1,7 +1,6 @@
 package flash.events;
 
-extern class MouseEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?localX : Float, ?localY : Float, ?relatedObject : flash.display.InteractiveObject, ?ctrlKey : Bool, ?altKey : Bool, ?shiftKey : Bool, ?buttonDown : Bool, ?delta : Int) : Void;
+extern class MouseEvent extends Event {
 	var altKey : Bool;
 	var buttonDown : Bool;
 	var ctrlKey : Bool;
@@ -12,17 +11,8 @@ extern class MouseEvent extends flash.events.Event {
 	var shiftKey : Bool;
 	var stageX(default,null) : Float;
 	var stageY(default,null) : Float;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?localX : Float, ?localY : Float, ?relatedObject : flash.display.InteractiveObject, ?ctrlKey : Bool, ?altKey : Bool, ?shiftKey : Bool, ?buttonDown : Bool, ?delta : Int) : Void;
 	function updateAfterEvent() : Void;
-	private function getStageX(localX : Float, localY : Float) : Float;
-	private function getStageY(localX : Float, localY : Float) : Float;
-	private var m_altKey : Bool;
-	private var m_buttonDown : Bool;
-	private var m_ctrlKey : Bool;
-	private var m_delta : Int;
-	private var m_localX : Float;
-	private var m_localY : Float;
-	private var m_relatedObject : flash.display.InteractiveObject;
-	private var m_shiftKey : Bool;
 	static var CLICK : String;
 	static var DOUBLE_CLICK : String;
 	static var MOUSE_DOWN : String;

+ 2 - 2
std/flash9/events/NetFilterEvent.hx

@@ -1,7 +1,7 @@
 package flash.events;
 
-extern class NetFilterEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?header : flash.utils.ByteArray, ?data : flash.utils.ByteArray) : Void;
+extern class NetFilterEvent extends Event {
 	var data : flash.utils.ByteArray;
 	var header : flash.utils.ByteArray;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?header : flash.utils.ByteArray, ?data : flash.utils.ByteArray) : Void;
 }

+ 2 - 3
std/flash9/events/NetStatusEvent.hx

@@ -1,8 +1,7 @@
 package flash.events;
 
-extern class NetStatusEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?info : Dynamic) : Void;
+extern class NetStatusEvent extends Event {
 	var info : Dynamic;
-	private var m_info : Dynamic;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?info : Dynamic) : Void;
 	static var NET_STATUS : String;
 }

+ 2 - 4
std/flash9/events/ProgressEvent.hx

@@ -1,11 +1,9 @@
 package flash.events;
 
-extern class ProgressEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?bytesLoaded : UInt, ?bytesTotal : UInt) : Void;
+extern class ProgressEvent extends Event {
 	var bytesLoaded : UInt;
 	var bytesTotal : UInt;
-	private var m_bytesLoaded : UInt;
-	private var m_bytesTotal : UInt;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?bytesLoaded : UInt, ?bytesTotal : UInt) : Void;
 	static var PROGRESS : String;
 	static var SOCKET_DATA : String;
 }

+ 1 - 1
std/flash9/events/SecurityErrorEvent.hx

@@ -1,6 +1,6 @@
 package flash.events;
 
-extern class SecurityErrorEvent extends flash.events.ErrorEvent {
+extern class SecurityErrorEvent extends ErrorEvent {
 	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?text : String) : Void;
 	static var SECURITY_ERROR : String;
 }

+ 2 - 4
std/flash9/events/StatusEvent.hx

@@ -1,10 +1,8 @@
 package flash.events;
 
-extern class StatusEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?code : String, ?level : String) : Void;
+extern class StatusEvent extends Event {
 	var code : String;
 	var level : String;
-	private var m_code : String;
-	private var m_level : String;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?code : String, ?level : String) : Void;
 	static var STATUS : String;
 }

+ 2 - 3
std/flash9/events/SyncEvent.hx

@@ -1,8 +1,7 @@
 package flash.events;
 
-extern class SyncEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?changeList : Array<Dynamic>) : Void;
+extern class SyncEvent extends Event {
 	var changeList : Array<Dynamic>;
-	private var m_changeList : Array<Dynamic>;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?changeList : Array<Dynamic>) : Void;
 	static var SYNC : String;
 }

+ 2 - 3
std/flash9/events/TextEvent.hx

@@ -1,9 +1,8 @@
 package flash.events;
 
-extern class TextEvent extends flash.events.Event {
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?text : String) : Void;
+extern class TextEvent extends Event {
 	var text : String;
-	private var m_text : String;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?text : String) : Void;
 	static var LINK : String;
 	static var TEXT_INPUT : String;
 }

+ 1 - 1
std/flash9/events/TimerEvent.hx

@@ -1,6 +1,6 @@
 package flash.events;
 
-extern class TimerEvent extends flash.events.Event {
+extern class TimerEvent extends Event {
 	function new(type : String, ?bubbles : Bool, ?cancelable : Bool) : Void;
 	function updateAfterEvent() : Void;
 	static var TIMER : String;

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

@@ -1,5 +1,4 @@
 package flash.events;
 
 extern class WeakFunctionClosure {
-	function new() : Void;
 }

+ 3 - 24
std/flash9/external/ExternalInterface.hx

@@ -1,32 +1,11 @@
 package flash.external;
 
 extern class ExternalInterface {
-	function new() : Void;
-	static function addCallback(functionName : String, closure : Dynamic ) : Void;
 	static var available(default,null) : Bool;
-	static function call(functionName : String, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Dynamic;
-	static var objectID(default,null) : String;
 
+	static var objectID(default,null) : String;
+	static function addCallback(functionName : String, closure : Dynamic) : Void;
+	static function call(functionName : String, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Dynamic;
 	/** added in FP 9.0.115 **/
 	static var marshallExceptions : Bool;
-
-	private static function _addCallback(functionName : String, closure : Dynamic) : Void;
-	private static function _argumentsToAS(obj : Dynamic) : Array<Dynamic>;
-	private static function _argumentsToXML(obj : Array<Dynamic>) : String;
-	private static function _arrayToAS(obj : Dynamic) : Void;
-	private static function _arrayToJS(value : Array<Dynamic>) : String;
-	private static function _arrayToXML(obj : Array<Dynamic>) : String;
-	private static function _callIn(closure : Dynamic, request : String) : String;
-	private static function _callOut(request : String) : String;
-	private static function _escapeXML(s : String) : String;
-	private static function _evalJS(expression : String) : String;
-	private static function _getPropNames(obj : Dynamic) : Array<Dynamic>;
-	private static function _initJS() : Void;
-	private static function _objectToAS(obj : Dynamic) : Void;
-	private static function _objectToJS(value : Dynamic) : String;
-	private static function _objectToXML(obj : Dynamic) : String;
-	private static function _toAS(obj : Dynamic) : Void;
-	private static function _toJS(value : Dynamic) : String;
-	private static function _toXML(value : Dynamic) : String;
-	private static var activeX(default,null) : Bool;
 }

+ 2 - 2
std/flash9/filters/BevelFilter.hx

@@ -1,7 +1,6 @@
 package flash.filters;
 
-extern class BevelFilter extends flash.filters.BitmapFilter {
-	function new(?distance : Float, ?angle : Float, ?highlightColor : UInt, ?highlightAlpha : Float, ?shadowColor : UInt, ?shadowAlpha : Float, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?type : String, ?knockout : Bool) : Void;
+extern class BevelFilter extends BitmapFilter {
 	var angle : Float;
 	var blurX : Float;
 	var blurY : Float;
@@ -14,4 +13,5 @@ extern class BevelFilter extends flash.filters.BitmapFilter {
 	var shadowColor : UInt;
 	var strength : Float;
 	var type : String;
+	function new(?distance : Float, ?angle : Float, ?highlightColor : UInt, ?highlightAlpha : Float, ?shadowColor : UInt, ?shadowAlpha : Float, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?type : String, ?knockout : Bool) : Void;
 }

+ 1 - 1
std/flash9/filters/BitmapFilter.hx

@@ -2,5 +2,5 @@ package flash.filters;
 
 extern class BitmapFilter {
 	function new() : Void;
-	function clone() : flash.filters.BitmapFilter;
+	function clone() : BitmapFilter;
 }

+ 4 - 5
std/flash9/filters/BitmapFilterQuality.hx

@@ -1,8 +1,7 @@
 package flash.filters;
 
-extern class BitmapFilterQuality {
-	function new() : Void;
-	static var HIGH : Int;
-	static var LOW : Int;
-	static var MEDIUM : Int;
+extern enum BitmapFilterQuality {
+	HIGH;
+	LOW;
+	MEDIUM;
 }

+ 4 - 5
std/flash9/filters/BitmapFilterType.hx

@@ -1,8 +1,7 @@
 package flash.filters;
 
-extern class BitmapFilterType {
-	function new() : Void;
-	static var FULL : String;
-	static var INNER : String;
-	static var OUTER : String;
+extern enum BitmapFilterType {
+	FULL;
+	INNER;
+	OUTER;
 }

+ 2 - 2
std/flash9/filters/BlurFilter.hx

@@ -1,8 +1,8 @@
 package flash.filters;
 
-extern class BlurFilter extends flash.filters.BitmapFilter {
-	function new(?blurX : Float, ?blurY : Float, ?quality : Int) : Void;
+extern class BlurFilter extends BitmapFilter {
 	var blurX : Float;
 	var blurY : Float;
 	var quality : Int;
+	function new(?blurX : Float, ?blurY : Float, ?quality : Int) : Void;
 }

+ 2 - 2
std/flash9/filters/ColorMatrixFilter.hx

@@ -1,6 +1,6 @@
 package flash.filters;
 
-extern class ColorMatrixFilter extends flash.filters.BitmapFilter {
+extern class ColorMatrixFilter extends BitmapFilter {
+	var matrix : Array<Dynamic>;
 	function new(?matrix : Array<Dynamic>) : Void;
-	var matrix : Array<Float>;
 }

+ 3 - 3
std/flash9/filters/ConvolutionFilter.hx

@@ -1,14 +1,14 @@
 package flash.filters;
 
-extern class ConvolutionFilter extends flash.filters.BitmapFilter {
-	function new(?matrixX : Float, ?matrixY : Float, ?matrix : Array<Dynamic>, ?divisor : Float, ?bias : Float, ?preserveAlpha : Bool, ?clamp : Bool, ?color : UInt, ?alpha : Float) : Void;
+extern class ConvolutionFilter extends BitmapFilter {
 	var alpha : Float;
 	var bias : Float;
 	var clamp : Bool;
 	var color : UInt;
 	var divisor : Float;
-	var matrix : Array<Dynamic>;
+	var matrix : Array<Float>;
 	var matrixX : Float;
 	var matrixY : Float;
 	var preserveAlpha : Bool;
+	function new(?matrixX : Float, ?matrixY : Float, ?matrix : Array<Float>, ?divisor : Float, ?bias : Float, ?preserveAlpha : Bool, ?clamp : Bool, ?color : UInt, ?alpha : Float) : Void;
 }

+ 3 - 3
std/flash9/filters/DisplacementMapFilter.hx

@@ -1,14 +1,14 @@
 package flash.filters;
 
-extern class DisplacementMapFilter extends flash.filters.BitmapFilter {
-	function new(?mapBitmap : flash.display.BitmapData, ?mapPoint : flash.geom.Point, ?componentX : UInt, ?componentY : UInt, ?scaleX : Float, ?scaleY : Float, ?mode : String, ?color : UInt, ?alpha : Float) : Void;
+extern class DisplacementMapFilter extends BitmapFilter {
 	var alpha : Float;
 	var color : UInt;
 	var componentX : UInt;
 	var componentY : UInt;
 	var mapBitmap : flash.display.BitmapData;
 	var mapPoint : flash.geom.Point;
-	var mode : String;
+	var mode : DisplacementMapFilterMode;
 	var scaleX : Float;
 	var scaleY : Float;
+	function new(?mapBitmap : flash.display.BitmapData, ?mapPoint : flash.geom.Point, ?componentX : UInt, ?componentY : UInt, ?scaleX : Float, ?scaleY : Float, ?mode : DisplacementMapFilterMode, ?color : UInt, ?alpha : Float) : Void;
 }

+ 5 - 6
std/flash9/filters/DisplacementMapFilterMode.hx

@@ -1,9 +1,8 @@
 package flash.filters;
 
-extern class DisplacementMapFilterMode {
-	function new() : Void;
-	static var CLAMP : String;
-	static var COLOR : String;
-	static var IGNORE : String;
-	static var WRAP : String;
+extern enum DisplacementMapFilterMode {
+	CLAMP;
+	COLOR;
+	IGNORE;
+	WRAP;
 }

+ 2 - 2
std/flash9/filters/DropShadowFilter.hx

@@ -1,7 +1,6 @@
 package flash.filters;
 
-extern class DropShadowFilter extends flash.filters.BitmapFilter {
-	function new(?distance : Float, ?angle : Float, ?color : UInt, ?alpha : Float, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?inner : Bool, ?knockout : Bool, ?hideObject : Bool) : Void;
+extern class DropShadowFilter extends BitmapFilter {
 	var alpha : Float;
 	var angle : Float;
 	var blurX : Float;
@@ -13,4 +12,5 @@ extern class DropShadowFilter extends flash.filters.BitmapFilter {
 	var knockout : Bool;
 	var quality : Int;
 	var strength : Float;
+	function new(?distance : Float, ?angle : Float, ?color : UInt, ?alpha : Float, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?inner : Bool, ?knockout : Bool, ?hideObject : Bool) : Void;
 }

+ 2 - 2
std/flash9/filters/GlowFilter.hx

@@ -1,7 +1,6 @@
 package flash.filters;
 
-extern class GlowFilter extends flash.filters.BitmapFilter {
-	function new(?color : UInt, ?alpha : Float, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?inner : Bool, ?knockout : Bool) : Void;
+extern class GlowFilter extends BitmapFilter {
 	var alpha : Float;
 	var blurX : Float;
 	var blurY : Float;
@@ -10,4 +9,5 @@ extern class GlowFilter extends flash.filters.BitmapFilter {
 	var knockout : Bool;
 	var quality : Int;
 	var strength : Float;
+	function new(?color : UInt, ?alpha : Float, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?inner : Bool, ?knockout : Bool) : Void;
 }

+ 2 - 2
std/flash9/filters/GradientBevelFilter.hx

@@ -1,7 +1,6 @@
 package flash.filters;
 
-extern class GradientBevelFilter extends flash.filters.BitmapFilter {
-	function new(?distance : Float, ?angle : Float, ?colors : Array<Dynamic>, ?alphas : Array<Dynamic>, ?ratios : Array<Dynamic>, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?type : String, ?knockout : Bool) : Void;
+extern class GradientBevelFilter extends BitmapFilter {
 	var alphas : Array<Dynamic>;
 	var angle : Float;
 	var blurX : Float;
@@ -13,4 +12,5 @@ extern class GradientBevelFilter extends flash.filters.BitmapFilter {
 	var ratios : Array<Dynamic>;
 	var strength : Float;
 	var type : String;
+	function new(?distance : Float, ?angle : Float, ?colors : Array<Dynamic>, ?alphas : Array<Dynamic>, ?ratios : Array<Dynamic>, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?type : String, ?knockout : Bool) : Void;
 }

+ 2 - 2
std/flash9/filters/GradientGlowFilter.hx

@@ -1,7 +1,6 @@
 package flash.filters;
 
-extern class GradientGlowFilter extends flash.filters.BitmapFilter {
-	function new(?distance : Float, ?angle : Float, ?colors : Array<Dynamic>, ?alphas : Array<Dynamic>, ?ratios : Array<Dynamic>, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?type : String, ?knockout : Bool) : Void;
+extern class GradientGlowFilter extends BitmapFilter {
 	var alphas : Array<Dynamic>;
 	var angle : Float;
 	var blurX : Float;
@@ -13,4 +12,5 @@ extern class GradientGlowFilter extends flash.filters.BitmapFilter {
 	var ratios : Array<Dynamic>;
 	var strength : Float;
 	var type : String;
+	function new(?distance : Float, ?angle : Float, ?colors : Array<Dynamic>, ?alphas : Array<Dynamic>, ?ratios : Array<Dynamic>, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?type : String, ?knockout : Bool) : Void;
 }

+ 2 - 2
std/flash9/geom/ColorTransform.hx

@@ -1,16 +1,16 @@
 package flash.geom;
 
 extern class ColorTransform {
-	function new(?redMultiplier : Float, ?greenMultiplier : Float, ?blueMultiplier : Float, ?alphaMultiplier : Float, ?redOffset : Float, ?greenOffset : Float, ?blueOffset : Float, ?alphaOffset : Float) : Void;
 	var alphaMultiplier : Float;
 	var alphaOffset : Float;
 	var blueMultiplier : Float;
 	var blueOffset : Float;
 	var color : UInt;
-	function concat(second : flash.geom.ColorTransform) : Void;
 	var greenMultiplier : Float;
 	var greenOffset : Float;
 	var redMultiplier : Float;
 	var redOffset : Float;
+	function new(?redMultiplier : Float, ?greenMultiplier : Float, ?blueMultiplier : Float, ?alphaMultiplier : Float, ?redOffset : Float, ?greenOffset : Float, ?blueOffset : Float, ?alphaOffset : Float) : Void;
+	function concat(second : ColorTransform) : Void;
 	function toString() : String;
 }

+ 8 - 8
std/flash9/geom/Matrix.hx

@@ -1,23 +1,23 @@
 package flash.geom;
 
 extern class Matrix {
-	function new(?a : Float, ?b : Float, ?c : Float, ?d : Float, ?tx : Float, ?ty : Float) : Void;
 	var a : Float;
 	var b : Float;
 	var c : Float;
-	function clone() : flash.geom.Matrix;
-	function concat(m : flash.geom.Matrix) : Void;
+	var d : Float;
+	var tx : Float;
+	var ty : Float;
+	function new(?a : Float, ?b : Float, ?c : Float, ?d : Float, ?tx : Float, ?ty : Float) : Void;
+	function clone() : Matrix;
+	function concat(m : Matrix) : Void;
 	function createBox(scaleX : Float, scaleY : Float, ?rotation : Float, ?tx : Float, ?ty : Float) : Void;
 	function createGradientBox(width : Float, height : Float, ?rotation : Float, ?tx : Float, ?ty : Float) : Void;
-	var d : Float;
-	function deltaTransformPoint(point : flash.geom.Point) : flash.geom.Point;
+	function deltaTransformPoint(point : Point) : Point;
 	function identity() : Void;
 	function invert() : Void;
 	function rotate(angle : Float) : Void;
 	function scale(sx : Float, sy : Float) : Void;
 	function toString() : String;
-	function transformPoint(point : flash.geom.Point) : flash.geom.Point;
+	function transformPoint(point : Point) : Point;
 	function translate(dx : Float, dy : Float) : Void;
-	var tx : Float;
-	var ty : Float;
 }

+ 10 - 10
std/flash9/geom/Point.hx

@@ -1,18 +1,18 @@
 package flash.geom;
 
 extern class Point {
-	function new(?x : Float, ?y : Float) : Void;
-	function add(v : flash.geom.Point) : flash.geom.Point;
-	function clone() : flash.geom.Point;
-	function equals(toCompare : flash.geom.Point) : Bool;
 	var length(default,null) : Float;
+	var x : Float;
+	var y : Float;
+	function new(?x : Float, ?y : Float) : Void;
+	function add(v : Point) : Point;
+	function clone() : Point;
+	function equals(toCompare : Point) : Bool;
 	function normalize(thickness : Float) : Void;
 	function offset(dx : Float, dy : Float) : Void;
-	function subtract(v : flash.geom.Point) : flash.geom.Point;
+	function subtract(v : Point) : Point;
 	function toString() : String;
-	var x : Float;
-	var y : Float;
-	static function distance(pt1 : flash.geom.Point, pt2 : flash.geom.Point) : Float;
-	static function interpolate(pt1 : flash.geom.Point, pt2 : flash.geom.Point, f : Float) : flash.geom.Point;
-	static function polar(len : Float, angle : Float) : flash.geom.Point;
+	static function distance(pt1 : Point, pt2 : Point) : Float;
+	static function interpolate(pt1 : Point, pt2 : Point, f : Float) : Point;
+	static function polar(len : Float, angle : Float) : Point;
 }

+ 19 - 19
std/flash9/geom/Rectangle.hx

@@ -1,31 +1,31 @@
 package flash.geom;
 
 extern class Rectangle {
-	function new(?x : Float, ?y : Float, ?width : Float, ?height : Float) : Void;
 	var bottom : Float;
-	var bottomRight : flash.geom.Point;
-	function clone() : flash.geom.Rectangle;
-	function contains(x : Float, y : Float) : Bool;
-	function containsPoint(point : flash.geom.Point) : Bool;
-	function containsRect(rect : flash.geom.Rectangle) : Bool;
-	function equals(toCompare : flash.geom.Rectangle) : Bool;
+	var bottomRight : Point;
 	var height : Float;
-	function inflate(dx : Float, dy : Float) : Void;
-	function inflatePoint(point : flash.geom.Point) : Void;
-	function intersection(toIntersect : flash.geom.Rectangle) : flash.geom.Rectangle;
-	function intersects(toIntersect : flash.geom.Rectangle) : Bool;
-	function isEmpty() : Bool;
 	var left : Float;
-	function offset(dx : Float, dy : Float) : Void;
-	function offsetPoint(point : flash.geom.Point) : Void;
 	var right : Float;
-	function setEmpty() : Void;
-	var size : flash.geom.Point;
-	function toString() : String;
+	var size : Point;
 	var top : Float;
-	var topLeft : flash.geom.Point;
-	function union(toUnion : flash.geom.Rectangle) : flash.geom.Rectangle;
+	var topLeft : Point;
 	var width : Float;
 	var x : Float;
 	var y : Float;
+	function new(?x : Float, ?y : Float, ?width : Float, ?height : Float) : Void;
+	function clone() : Rectangle;
+	function contains(x : Float, y : Float) : Bool;
+	function containsPoint(point : Point) : Bool;
+	function containsRect(rect : Rectangle) : Bool;
+	function equals(toCompare : Rectangle) : Bool;
+	function inflate(dx : Float, dy : Float) : Void;
+	function inflatePoint(point : Point) : Void;
+	function intersection(toIntersect : Rectangle) : Rectangle;
+	function intersects(toIntersect : Rectangle) : Bool;
+	function isEmpty() : Bool;
+	function offset(dx : Float, dy : Float) : Void;
+	function offsetPoint(point : Point) : Void;
+	function setEmpty() : Void;
+	function toString() : String;
+	function union(toUnion : Rectangle) : Rectangle;
 }

+ 5 - 5
std/flash9/geom/Transform.hx

@@ -1,12 +1,12 @@
 package flash.geom;
 
 extern class Transform {
+	var colorTransform : ColorTransform;
+	var concatenatedColorTransform(default,null) : ColorTransform;
+	var concatenatedMatrix(default,null) : Matrix;
+	var matrix : Matrix;
+	var pixelBounds(default,null) : Rectangle;
 	function new(displayObject : flash.display.DisplayObject) : Void;
-	var colorTransform : flash.geom.ColorTransform;
-	var concatenatedColorTransform(default,null) : flash.geom.ColorTransform;
-	var concatenatedMatrix(default,null) : flash.geom.Matrix;
-	var matrix : flash.geom.Matrix;
-	var pixelBounds(default,null) : flash.geom.Rectangle;
 	#if flash10
 	var matrix3D : flash.geom.Matrix3D;
 	var perspectiveProjection : flash.geom.PerspectiveProjection;

+ 3 - 3
std/flash9/media/Camera.hx

@@ -1,7 +1,6 @@
 package flash.media;
 
 extern class Camera extends flash.events.EventDispatcher {
-	function new() : Void;
 	var activityLevel(default,null) : Float;
 	var bandwidth(default,null) : Int;
 	var currentFPS(default,null) : Float;
@@ -15,13 +14,14 @@ extern class Camera extends flash.events.EventDispatcher {
 	var muted(default,null) : Bool;
 	var name(default,null) : String;
 	var quality(default,null) : Int;
+	var width(default,null) : Int;
+	function new() : Void;
 	function setCursor(value : Bool) : Void;
 	function setKeyFrameInterval(keyFrameInterval : Int) : Void;
 	function setLoopback(?compress : Bool) : Void;
 	function setMode(width : Int, height : Int, fps : Float, ?favorArea : Bool) : Void;
 	function setMotionLevel(motionLevel : Int, ?timeout : Int) : Void;
 	function setQuality(bandwidth : Int, quality : Int) : Void;
-	var width(default,null) : Int;
-	static function getCamera(?name : String) : flash.media.Camera;
 	static var names(default,null) : Array<Dynamic>;
+	static function getCamera(?name : String) : Camera;
 }

+ 1 - 1
std/flash9/media/ID3Info.hx

@@ -1,7 +1,6 @@
 package flash.media;
 
 extern class ID3Info {
-	function new() : Void;
 	var album : String;
 	var artist : String;
 	var comment : String;
@@ -9,4 +8,5 @@ extern class ID3Info {
 	var songName : String;
 	var track : String;
 	var year : String;
+	function new() : Void;
 }

+ 6 - 9
std/flash9/media/Microphone.hx

@@ -1,7 +1,6 @@
 package flash.media;
 
 extern class Microphone extends flash.events.EventDispatcher {
-
 	var activityLevel(default,null) : Float;
 	var gain : Float;
 	var index(default,null) : Int;
@@ -10,20 +9,18 @@ extern class Microphone extends flash.events.EventDispatcher {
 	var rate : Int;
 	var silenceLevel(default,null) : Float;
 	var silenceTimeout(default,null) : Int;
-	var soundTransform : flash.media.SoundTransform;
+	var soundTransform : SoundTransform;
 	var useEchoSuppression(default,null) : Bool;
-
-	function new() : Void;
-	function setLoopBack(?state : Bool) : Void;
-	function setSilenceLevel(silenceLevel : Float, ?timeout : Int) : Void;
-	function setUseEchoSuppression(useEchoSuppression : Bool) : Void;
-
 	#if flash10
 	var codec : SoundCodec;
 	var encodeQuality : Int;
 	var framesPerPacket : Int;
 	#end
 
-	static function getMicrophone(?index : Int) : flash.media.Microphone;
+	function new() : Void;
+	function setLoopBack(?state : Bool) : Void;
+	function setSilenceLevel(silenceLevel : Float, ?timeout : Int) : Void;
+	function setUseEchoSuppression(useEchoSuppression : Bool) : Void;
 	static var names(default,null) : Array<Dynamic>;
+	static function getMicrophone(?index : Int) : Microphone;
 }

+ 4 - 7
std/flash9/media/Sound.hx

@@ -1,19 +1,16 @@
 package flash.media;
 
 extern class Sound extends flash.events.EventDispatcher {
-
 	var bytesLoaded(default,null) : UInt;
 	var bytesTotal(default,null) : Int;
-	var id3(default,null) : flash.media.ID3Info;
+	var id3(default,null) : ID3Info;
 	var isBuffering(default,null) : Bool;
 	var length(default,null) : Float;
 	var url(default,null) : String;
-
-	function new(?stream : flash.net.URLRequest, ?context : flash.media.SoundLoaderContext) : Void;
+	function new(?stream : flash.net.URLRequest, ?context : SoundLoaderContext) : Void;
 	function close() : Void;
-	function load(stream : flash.net.URLRequest, ?context : flash.media.SoundLoaderContext) : Void;
-	function play(?startTime : Float, ?loops : Int, ?sndTransform : flash.media.SoundTransform) : flash.media.SoundChannel;
-
+	function load(stream : flash.net.URLRequest, ?context : SoundLoaderContext) : Void;
+	function play(?startTime : Float, ?loops : Int, ?sndTransform : SoundTransform) : SoundChannel;
 	#if flash10
 	var samplesCallbackData(default,null) : flash.utils.ByteArray;
 	function extract( ?target : flash.utils.ByteArray, ?length : Float, ?startPosition : Float ) : Float;

+ 2 - 2
std/flash9/media/SoundChannel.hx

@@ -1,10 +1,10 @@
 package flash.media;
 
 extern class SoundChannel extends flash.events.EventDispatcher {
-	function new() : Void;
 	var leftPeak(default,null) : Float;
 	var position(default,null) : Float;
 	var rightPeak(default,null) : Float;
-	var soundTransform : flash.media.SoundTransform;
+	var soundTransform : SoundTransform;
+	function new() : Void;
 	function stop() : Void;
 }

+ 1 - 1
std/flash9/media/SoundLoaderContext.hx

@@ -1,7 +1,7 @@
 package flash.media;
 
 extern class SoundLoaderContext {
-	function new(?bufferTime : Float, ?checkPolicyFile : Bool) : Void;
 	var bufferTime : Float;
 	var checkPolicyFile : Bool;
+	function new(?bufferTime : Float, ?checkPolicyFile : Bool) : Void;
 }

+ 2 - 3
std/flash9/media/SoundMixer.hx

@@ -1,10 +1,9 @@
 package flash.media;
 
 extern class SoundMixer {
-	function new() : Void;
-	static function areSoundsInaccessible() : Bool;
 	static var bufferTime : Int;
+	static var soundTransform : SoundTransform;
+	static function areSoundsInaccessible() : Bool;
 	static function computeSpectrum(outputArray : flash.utils.ByteArray, ?FFTMode : Bool, ?stretchFactor : Int) : Void;
-	static var soundTransform : flash.media.SoundTransform;
 	static function stopAll() : Void;
 }

+ 1 - 1
std/flash9/media/SoundTransform.hx

@@ -1,11 +1,11 @@
 package flash.media;
 
 extern class SoundTransform {
-	function new(?vol : Float, ?panning : Float) : Void;
 	var leftToLeft : Float;
 	var leftToRight : Float;
 	var pan : Float;
 	var rightToLeft : Float;
 	var rightToRight : Float;
 	var volume : Float;
+	function new(?vol : Float, ?panning : Float) : Void;
 }

+ 4 - 4
std/flash9/media/Video.hx

@@ -1,12 +1,12 @@
 package flash.media;
 
 extern class Video extends flash.display.DisplayObject {
-	function new(?width : Int, ?height : Int) : Void;
-	function attachCamera(camera : flash.media.Camera) : Void;
-	function attachNetStream(netStream : flash.net.NetStream) : Void;
-	function clear() : Void;
 	var deblocking : Int;
 	var smoothing : Bool;
 	var videoHeight(default,null) : Int;
 	var videoWidth(default,null) : Int;
+	function new(?width : Int, ?height : Int) : Void;
+	function attachCamera(camera : Camera) : Void;
+	function attachNetStream(netStream : flash.net.NetStream) : Void;
+	function clear() : Void;
 }

+ 1 - 1
std/flash9/net/FileFilter.hx

@@ -1,8 +1,8 @@
 package flash.net;
 
 extern class FileFilter {
-	function new(description : String, extension : String, ?macType : String) : Void;
 	var description : String;
 	var extension : String;
 	var macType : String;
+	function new(description : String, extension : String, ?macType : String) : Void;
 }

+ 2 - 6
std/flash9/net/FileReference.hx

@@ -1,24 +1,20 @@
 package flash.net;
 
 extern class FileReference extends flash.events.EventDispatcher {
-
 	var creationDate(default,null) : Date;
 	var creator(default,null) : String;
 	var modificationDate(default,null) : Date;
 	var name(default,null) : String;
 	var size(default,null) : UInt;
 	var type(default,null) : String;
-
 	function new() : Void;
 	function browse(?typeFilter : Array<Dynamic>) : Bool;
 	function cancel() : Void;
-	function download(request : flash.net.URLRequest, ?defaultFileName : String) : Void;
-	function upload(request : flash.net.URLRequest, ?uploadDataFieldName : String, ?testUpload : Bool) : Void;
-
+	function download(request : URLRequest, ?defaultFileName : String) : Void;
+	function upload(request : URLRequest, ?uploadDataFieldName : String, ?testUpload : Bool) : Void;
 	#if flash10
 	var data(default,null) : flash.utils.ByteArray;
 	function load() : Void;
 	function save( ?data : Dynamic, ?defaultFileName : String ) : Void;
 	#end
-
 }

+ 1 - 1
std/flash9/net/FileReferenceList.hx

@@ -1,7 +1,7 @@
 package flash.net;
 
 extern class FileReferenceList extends flash.events.EventDispatcher {
+	var fileList(default,null) : Array<Dynamic>;
 	function new() : Void;
 	function browse(?typeFilter : Array<Dynamic>) : Bool;
-	var fileList(default,null) : Array<Dynamic>;
 }

+ 1 - 1
std/flash9/net/IDynamicPropertyWriter.hx

@@ -1,5 +1,5 @@
 package flash.net;
 
 extern interface IDynamicPropertyWriter {
-	function writeDynamicProperties(obj : Dynamic, output : flash.net.IDynamicPropertyOutput) : Void;
+	function writeDynamicProperties(obj : Dynamic, output : IDynamicPropertyOutput) : Void;
 }

+ 2 - 2
std/flash9/net/LocalConnection.hx

@@ -1,12 +1,12 @@
 package flash.net;
 
 extern class LocalConnection extends flash.events.EventDispatcher {
+	var client : Dynamic;
+	var domain(default,null) : String;
 	function new() : Void;
 	function allowDomain( ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
 	function allowInsecureDomain( ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
-	var client : Dynamic;
 	function close() : Void;
 	function connect(connectionName : String) : Void;
-	var domain(default,null) : String;
 	function send(connectionName : String, methodName : String, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
 }

+ 1 - 5
std/flash9/net/NetConnection.hx

@@ -1,7 +1,6 @@
 package flash.net;
 
 extern class NetConnection extends flash.events.EventDispatcher {
-
 	var client : Dynamic;
 	var connected(default,null) : Bool;
 	var connectedProxyType(default,null) : String;
@@ -9,13 +8,11 @@ extern class NetConnection extends flash.events.EventDispatcher {
 	var proxyType : String;
 	var uri(default,null) : String;
 	var usingTLS(default,null) : Bool;
-
 	function new() : Void;
 	function addHeader(operation : String, ?mustUnderstand : Bool, ?param : Dynamic) : Void;
-	function call(command : String, responder : flash.net.Responder, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
+	function call(command : String, responder : Responder, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
 	function close() : Void;
 	function connect(command : String, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
-
 	#if flash10
 	var farID(default,null) : String;
 	var farNonce(default,null) : String;
@@ -27,5 +24,4 @@ extern class NetConnection extends flash.events.EventDispatcher {
 	#end
 
 	static var defaultObjectEncoding : UInt;
-
 }

+ 0 - 1
std/flash9/net/NetStream.hx

@@ -1,7 +1,6 @@
 package flash.net;
 
 extern class NetStream extends flash.events.EventDispatcher {
-
 	var audioCodec(default,null) : UInt;
 	var bufferLength(default,null) : Float;
 	var bufferTime : Float;

+ 1 - 2
std/flash9/net/ObjectEncoding.hx

@@ -1,9 +1,8 @@
 package flash.net;
 
 extern class ObjectEncoding {
-	function new() : Void;
 	static var AMF0 : UInt;
 	static var AMF3 : UInt;
 	static var DEFAULT : UInt;
-	static var dynamicPropertyWriter : flash.net.IDynamicPropertyWriter;
+	static var dynamicPropertyWriter : IDynamicPropertyWriter;
 }

+ 8 - 17
std/flash9/net/SharedObject.hx

@@ -1,31 +1,22 @@
 package flash.net;
 
 extern class SharedObject extends flash.events.EventDispatcher {
-	function new() : Void;
-	function clear() : Void;
 	var client : Dynamic;
-	function close() : Void;
-	function connect(myConnection : flash.net.NetConnection, ?params : String) : Void;
 	var data(default,null) : Dynamic;
-	function flush(?minDiskSpace : Int) : String;
 	var fps(null,default) : Void;
 	var objectEncoding : UInt;
+	var size(default,null) : UInt;
+	function new() : Void;
+	function clear() : Void;
+	function close() : Void;
+	function connect(myConnection : NetConnection, ?params : String) : Void;
+	function flush(?minDiskSpace : Int) : String;
 	function send( ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
 	function setDirty(propertyName : String) : Void;
 	function setProperty(propertyName : String, ?value : Dynamic) : Void;
-	var size(default,null) : UInt;
-	private function invoke(index : UInt, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
-	private function invokeWithArgsArray(index : UInt, args : Array<Dynamic>) : Void;
 	static var defaultObjectEncoding : UInt;
 	static function deleteAll(url : String) : Int;
 	static function getDiskUsage(url : String) : Int;
-	static function getLocal(name : String, ?localPath : String, ?secure : Bool) : flash.net.SharedObject;
-	static function getRemote(name : String, ?remotePath : String, ?persistence : Dynamic, ?secure : Bool) : flash.net.SharedObject;
-	private static var kClear : UInt;
-	private static var kClose : UInt;
-	private static var kConnect : UInt;
-	private static var kFlush : UInt;
-	private static var kGetSize : UInt;
-	private static var kSend : UInt;
-	private static var kSetFps : UInt;
+	static function getLocal(name : String, ?localPath : String, ?secure : Bool) : SharedObject;
+	static function getRemote(name : String, ?remotePath : String, ?persistence : Dynamic, ?secure : Bool) : SharedObject;
 }

+ 3 - 4
std/flash9/net/SharedObjectFlushStatus.hx

@@ -1,7 +1,6 @@
 package flash.net;
 
-extern class SharedObjectFlushStatus {
-	function new() : Void;
-	static var FLUSHED : String;
-	static var PENDING : String;
+extern enum SharedObjectFlushStatus {
+	FLUSHED;
+	PENDING;
 }

+ 4 - 8
std/flash9/net/URLLoader.hx

@@ -1,15 +1,11 @@
 package flash.net;
 
 extern class URLLoader extends flash.events.EventDispatcher {
-	function new(?request : flash.net.URLRequest) : Void;
 	var bytesLoaded : UInt;
 	var bytesTotal : UInt;
-	function close() : Void;
 	var data : Dynamic;
-	var dataFormat : String;
-	function load(request : flash.net.URLRequest) : Void;
-	private function onComplete(event : flash.events.Event) : Void;
-	private function onProgress(event : flash.events.ProgressEvent) : Void;
-	private function redirectEvent(event : flash.events.Event) : Void;
-	private var stream : flash.net.URLStream;
+	var dataFormat : URLLoaderDataFormat;
+	function new(?request : URLRequest) : Void;
+	function close() : Void;
+	function load(request : URLRequest) : Void;
 }

+ 4 - 5
std/flash9/net/URLLoaderDataFormat.hx

@@ -1,8 +1,7 @@
 package flash.net;
 
-extern class URLLoaderDataFormat {
-	function new() : Void;
-	static var BINARY : String;
-	static var TEXT : String;
-	static var VARIABLES : String;
+extern enum URLLoaderDataFormat {
+	BINARY;
+	TEXT;
+	VARIABLES;
 }

+ 1 - 3
std/flash9/net/URLRequest.hx

@@ -1,14 +1,12 @@
 package flash.net;
 
 extern class URLRequest {
-	function new(?url : String) : Void;
 	var contentType : String;
 	var data : Dynamic;
-	
 	/** added in FP 9.0.115 **/
 	var digest : String;
-	
 	var method : String;
 	var requestHeaders : Array<URLRequestHeader>;
 	var url : String;
+	function new(?url : String) : Void;
 }

+ 1 - 1
std/flash9/net/URLRequestHeader.hx

@@ -1,7 +1,7 @@
 package flash.net;
 
 extern class URLRequestHeader {
-	function new(?name : String, ?value : String) : Void;
 	var name : String;
 	var value : String;
+	function new(?name : String, ?value : String) : Void;
 }

+ 0 - 1
std/flash9/net/URLRequestMethod.hx

@@ -1,7 +1,6 @@
 package flash.net;
 
 extern class URLRequestMethod {
-	function new() : Void;
 	static var GET : String;
 	static var POST : String;
 }

+ 1 - 1
std/flash9/net/URLStream.hx

@@ -7,7 +7,7 @@ extern class URLStream extends flash.events.EventDispatcher, implements flash.ut
 	var objectEncoding : UInt;
 	function new() : Void;
 	function close() : Void;
-	function load(request : flash.net.URLRequest) : Void;
+	function load(request : URLRequest) : Void;
 	function readBoolean() : Bool;
 	function readByte() : Int;
 	function readBytes(bytes : flash.utils.ByteArray, ?offset : UInt, ?length : UInt) : Void;

+ 0 - 1
std/flash9/net/URLVariables.hx

@@ -4,5 +4,4 @@ extern class URLVariables implements Dynamic {
 	function new(?source : String) : Void;
 	function decode(source : String) : Void;
 	function toString() : String;
-	private function _unescape(value : String) : String;
 }

+ 1 - 1
std/flash9/net/XMLSocket.hx

@@ -1,9 +1,9 @@
 package flash.net;
 
 extern class XMLSocket extends flash.events.EventDispatcher {
+	var connected(default,null) : Bool;
 	function new(?host : String, ?port : Int) : Void;
 	function close() : Void;
 	function connect(host : String, port : Int) : Void;
-	var connected(default,null) : Bool;
 	function send(object : Dynamic) : Void;
 }

+ 3 - 14
std/flash9/printing/PrintJob.hx

@@ -1,24 +1,13 @@
 package flash.printing;
 
 extern class PrintJob extends flash.events.EventDispatcher {
-	function new() : Void;
-	function addPage(sprite : flash.display.Sprite, ?printArea : flash.geom.Rectangle, ?options : flash.printing.PrintJobOptions, ?frameNum : Int) : Void;
-	var orientation(default,null) : String;
+	var orientation(default,null) : PrintJobOrientation;
 	var pageHeight(default,null) : Int;
 	var pageWidth(default,null) : Int;
 	var paperHeight(default,null) : Int;
 	var paperWidth(default,null) : Int;
+	function new() : Void;
+	function addPage(sprite : flash.display.Sprite, ?printArea : flash.geom.Rectangle, ?options : PrintJobOptions, ?frameNum : Int) : Void;
 	function send() : Void;
 	function start() : Bool;
-	private function _invoke(index : Dynamic, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
-	private function invoke(index : UInt, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
-	private function toClassicRectangle(printArea : flash.geom.Rectangle) : Void;
-	private static var kAddPage : UInt;
-	private static var kGetOrientation : UInt;
-	private static var kGetPageHeight : UInt;
-	private static var kGetPageWidth : UInt;
-	private static var kGetPaperHeight : UInt;
-	private static var kGetPaperWidth : UInt;
-	private static var kSend : UInt;
-	private static var kStart : UInt;
 }

+ 1 - 1
std/flash9/printing/PrintJobOptions.hx

@@ -1,6 +1,6 @@
 package flash.printing;
 
 extern class PrintJobOptions {
-	function new(?printAsBitmap : Bool) : Void;
 	var printAsBitmap : Bool;
+	function new(?printAsBitmap : Bool) : Void;
 }

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است