Browse Source

fp 9.0.115 updates

Nicolas Cannasse 17 years ago
parent
commit
f3fc44fa46

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

@@ -3,7 +3,7 @@ package flash.accessibility;
 extern class AccessibilityImplementation {
 extern class AccessibilityImplementation {
 	function new() : Void;
 	function new() : Void;
 	function accDoDefaultAction(childID : UInt) : Void;
 	function accDoDefaultAction(childID : UInt) : Void;
-	function accLocation(childID : UInt) : Void;
+	function accLocation(childID : UInt) : Dynamic;
 	function accSelect(operation : UInt, childID : UInt) : Void;
 	function accSelect(operation : UInt, childID : UInt) : Void;
 	var errno : UInt;
 	var errno : UInt;
 	function getChildIDArray() : Array<Dynamic>;
 	function getChildIDArray() : Array<Dynamic>;

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

@@ -20,7 +20,7 @@ extern class BitmapData implements IBitmapDrawable {
 	var height(default,null) : Int;
 	var height(default,null) : Int;
 	function hitTest(firstPoint : flash.geom.Point, firstAlphaThreshold : UInt, secondObject : Dynamic, ?secondBitmapDataPoint : flash.geom.Point, ?secondAlphaThreshold : UInt) : Bool;
 	function hitTest(firstPoint : flash.geom.Point, firstAlphaThreshold : UInt, secondObject : Dynamic, ?secondBitmapDataPoint : flash.geom.Point, ?secondAlphaThreshold : UInt) : Bool;
 	function lock() : Void;
 	function lock() : Void;
-	function merge(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, redMultiplier : Float, greenMultiplier : Float, blueMultiplier : Float, alphaMultiplier : Float) : Void;
+	function merge(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, redMultiplier : UInt, greenMultiplier : UInt, blueMultiplier : UInt, alphaMultiplier : UInt) : Void;
 	function noise(randomSeed : Int, ?low : UInt, ?high : UInt, ?channelOptions : UInt, ?grayScale : Bool) : Void;
 	function noise(randomSeed : Int, ?low : UInt, ?high : UInt, ?channelOptions : UInt, ?grayScale : Bool) : Void;
 	function paletteMap(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, ?redArray : Array<Int>, ?greenArray : Array<Int>, ?blueArray : Array<Int>, ?alphaArray : Array<Int>) : Void;
 	function paletteMap(sourceBitmapData : BitmapData, sourceRect : flash.geom.Rectangle, destPoint : flash.geom.Point, ?redArray : Array<Int>, ?greenArray : Array<Int>, ?blueArray : Array<Int>, ?alphaArray : Array<Int>) : Void;
 	function perlinNoise(baseX : Float, baseY : Float, numOctaves : UInt, randomSeed : Int, stitch : Bool, fractalNoise : Bool, ?channelOptions : UInt, ?grayScale : Bool, ?offsets : Array<flash.geom.Point>) : Void;
 	function perlinNoise(baseX : Float, baseY : Float, numOctaves : UInt, randomSeed : Int, stitch : Bool, fractalNoise : Bool, ?channelOptions : UInt, ?grayScale : Bool, ?offsets : Array<flash.geom.Point>) : Void;

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

@@ -20,4 +20,11 @@ extern class LoaderInfo extends flash.events.EventDispatcher {
 	var url(default,null) : String;
 	var url(default,null) : String;
 	var width(default,null) : Int;
 	var width(default,null) : Int;
 	private function _getArgs() : Dynamic;
 	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;
+
 }
 }

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

@@ -15,4 +15,7 @@ extern class Stage extends DisplayObjectContainer {
 	private function requireOwnerPermissions() : Void;
 	private function requireOwnerPermissions() : Void;
 
 
 	var displayState : StageDisplayState;
 	var displayState : StageDisplayState;
+	var fullScreenHeight(default,null) : UInt;
+	var fullScreenSourceRect : flash.geom.Rectangle;
+	var fullScreenWidth(default,null) : UInt;
 }
 }

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

@@ -38,7 +38,14 @@ extern class Event {
 	static var TAB_ENABLED_CHANGE : String;
 	static var TAB_ENABLED_CHANGE : String;
 	static var TAB_INDEX_CHANGE : String;
 	static var TAB_INDEX_CHANGE : String;
 	static var UNLOAD : String;
 	static var UNLOAD : String;
-	// player 9.0.28
+
+	/** added in FP 9.0.28 **/
 	static var ADDED_TO_STAGE : String;
 	static var ADDED_TO_STAGE : String;
+
+	/** added in FP 9.0.28 **/
 	static var REMOVED_FROM_STAGE : String;
 	static var REMOVED_FROM_STAGE : String;
+
+	/** added in FP 9.0.28 **/
+	static var FULLSCREEN : String;
+
 }
 }

+ 4 - 0
std/flash9/external/ExternalInterface.hx

@@ -6,6 +6,10 @@ extern class ExternalInterface {
 	static var available(default,null) : Bool;
 	static var available(default,null) : Bool;
 	static function call(functionName : String, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Dynamic;
 	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;
+
+	/** added in FP 9.0.115 **/
+	static var marshallExceptions : Bool;
+
 	private static function _addCallback(functionName : String, closure : Dynamic) : Void;
 	private static function _addCallback(functionName : String, closure : Dynamic) : Void;
 	private static function _argumentsToAS(obj : Dynamic) : Array<Dynamic>;
 	private static function _argumentsToAS(obj : Dynamic) : Array<Dynamic>;
 	private static function _argumentsToXML(obj : Array<Dynamic>) : String;
 	private static function _argumentsToXML(obj : Array<Dynamic>) : String;

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

@@ -21,6 +21,7 @@ extern class NetStream extends flash.events.EventDispatcher {
 	function publish(?name : String, ?type : String) : Void;
 	function publish(?name : String, ?type : String) : Void;
 	function receiveAudio(flag : Bool) : Void;
 	function receiveAudio(flag : Bool) : Void;
 	function receiveVideo(flag : Bool) : Void;
 	function receiveVideo(flag : Bool) : Void;
+	function receiveVideoFPS(FPS : Float) : Void;
 	function resume() : Void;
 	function resume() : Void;
 	function seek(offset : Float) : Void;
 	function seek(offset : Float) : Void;
 	function send(handlerName : String, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
 	function send(handlerName : String, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;

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

@@ -16,7 +16,7 @@ extern class Socket extends flash.events.EventDispatcher, implements flash.utils
 	function readFloat() : Float;
 	function readFloat() : Float;
 	function readInt() : Int;
 	function readInt() : Int;
 	function readMultiByte(length : UInt, charSet : String) : String;
 	function readMultiByte(length : UInt, charSet : String) : String;
-	function readObject() : Void;
+	function readObject() : Dynamic;
 	function readShort() : Int;
 	function readShort() : Int;
 	function readUTF() : String;
 	function readUTF() : String;
 	function readUTFBytes(length : UInt) : String;
 	function readUTFBytes(length : UInt) : String;

+ 4 - 0
std/flash9/net/URLRequest.hx

@@ -4,6 +4,10 @@ extern class URLRequest {
 	function new(?url : String) : Void;
 	function new(?url : String) : Void;
 	var contentType : String;
 	var contentType : String;
 	var data : Dynamic;
 	var data : Dynamic;
+	
+	/** added in FP 9.0.115 **/
+	var digest : String;
+	
 	var method : String;
 	var method : String;
 	var requestHeaders : Array<URLRequestHeader>;
 	var requestHeaders : Array<URLRequestHeader>;
 	var url : String;
 	var url : String;

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

@@ -15,7 +15,7 @@ extern class URLStream extends flash.events.EventDispatcher, implements flash.ut
 	function readFloat() : Float;
 	function readFloat() : Float;
 	function readInt() : Int;
 	function readInt() : Int;
 	function readMultiByte(length : UInt, charSet : String) : String;
 	function readMultiByte(length : UInt, charSet : String) : String;
-	function readObject() : Void;
+	function readObject() : Dynamic;
 	function readShort() : Int;
 	function readShort() : Int;
 	function readUTF() : String;
 	function readUTF() : String;
 	function readUTFBytes(length : UInt) : String;
 	function readUTFBytes(length : UInt) : String;

+ 1 - 0
std/flash9/system/Capabilities.hx

@@ -2,6 +2,7 @@ package flash.system;
 
 
 extern class Capabilities {
 extern class Capabilities {
 	function new() : Void;
 	function new() : Void;
+	static var _internal(default,null) : UInt;
 	static var avHardwareDisable(default,null) : Bool;
 	static var avHardwareDisable(default,null) : Bool;
 	static var hasAccessibility(default,null) : Bool;
 	static var hasAccessibility(default,null) : Bool;
 	static var hasAudio(default,null) : Bool;
 	static var hasAudio(default,null) : Bool;

+ 1 - 1
std/flash9/system/Security.hx

@@ -12,5 +12,5 @@ extern class Security {
 	static var exactSettings : Bool;
 	static var exactSettings : Bool;
 	static function loadPolicyFile(url : String) : Void;
 	static function loadPolicyFile(url : String) : Void;
 	static var sandboxType(default,null) : String;
 	static var sandboxType(default,null) : String;
-	static function showSettings(?panel : String) : Void;
+	static function showSettings(?panel : SecurityPanel) : Void;
 }
 }

+ 8 - 8
std/flash9/system/SecurityPanel.hx

@@ -1,11 +1,11 @@
 package flash.system;
 package flash.system;
 
 
-extern class SecurityPanel {
-	function new() : Void;
-	static var CAMERA : String;
-	static var DEFAULT : String;
-	static var LOCAL_STORAGE : String;
-	static var MICROPHONE : String;
-	static var PRIVACY : String;
-	static var SETTINGS_MANAGER : String;
+extern enum SecurityPanel {
+	CAMERA;
+	DEFAULT;
+	DISPLAY;
+	LOCAL_STORAGE;
+	MICROPHONE;
+	PRIVACY;
+	SETTINGS_MANAGER;
 }
 }

+ 13 - 0
std/flash9/system/System.hx

@@ -8,4 +8,17 @@ extern class System {
 	static var useCodePage : Bool;
 	static var useCodePage : Bool;
 	static var vmVersion(default,null) : String;
 	static var vmVersion(default,null) : String;
 	private static var theIME : flash.system.IME;
 	private static var theIME : flash.system.IME;
+
+	/** for FP 9.0.115+ debug only */
+	static function exit(code : UInt) : Void;
+
+	/** for FP 9.0.115+ debug only */
+	static function gc() : Void;
+
+	/** for FP 9.0.115+ debug only */
+	static function pause() : Void;
+
+	/** for FP 9.0.115+ debug only */
+	static function resume() : Void;
+	
 }
 }

+ 4 - 4
std/flash9/utils/Proxy.hx

@@ -2,14 +2,14 @@ package flash.utils;
 
 
 extern class Proxy {
 extern class Proxy {
 	function new() : Void;
 	function new() : Void;
-	function callProperty(name : Dynamic, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
+	function callProperty(name : Dynamic, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Dynamic;
 	function deleteProperty(name : Dynamic) : Bool;
 	function deleteProperty(name : Dynamic) : Bool;
-	function getDescendants(name : Dynamic) : Void;
-	function getProperty(name : Dynamic) : Void;
+	function getDescendants(name : Dynamic) : Dynamic;
+	function getProperty(name : Dynamic) : Dynamic;
 	function hasProperty(name : Dynamic) : Bool;
 	function hasProperty(name : Dynamic) : Bool;
 	function isAttribute(name : Dynamic) : Bool;
 	function isAttribute(name : Dynamic) : Bool;
 	function nextName(index : Int) : String;
 	function nextName(index : Int) : String;
 	function nextNameIndex(index : Int) : Int;
 	function nextNameIndex(index : Int) : Int;
-	function nextValue(index : Int) : Void;
+	function nextValue(index : Int) : Dynamic;
 	function setProperty(name : Dynamic, value : Dynamic) : Void;
 	function setProperty(name : Dynamic, value : Dynamic) : Void;
 }
 }