Nicolas Cannasse 18 роки тому
батько
коміт
f93f71365c

+ 1 - 0
doc/CHANGES.txt

@@ -12,6 +12,7 @@
 	added neko.net.ThreadRemotingServer.onXml (to handle crossdomain xml)
 	more accurate stack trace for socket remoting
 	prevent some memory leak in haxe.Timer / JS
+	added flash fullscreen support
 
 2007-03-06: 1.12
 	added flash lite support with -D flash_lite

+ 2 - 0
std/flash/Stage.hx

@@ -10,6 +10,8 @@ extern class Stage
 	static function addListener(listener:Dynamic):Void;
 	static function removeListener(listener:Dynamic):Void;
 
+	static var displayState : String;
+
 	private static function __init__() : Void untyped {
 		flash.Stage = _global["Stage"];
 	}

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

@@ -13,4 +13,6 @@ extern class Stage extends DisplayObjectContainer {
 	var stageHeight : Int;
 	var stageWidth : Int;
 	private function requireOwnerPermissions() : Void;
+
+	var stageDisplayState : StageDisplayState;
 }

+ 6 - 0
std/flash9/display/StageDisplayState.hx

@@ -0,0 +1,6 @@
+package flash.display;
+
+extern enum StageDisplayState {
+	FULL_SCREEN;
+	NORMAL;
+}

+ 7 - 0
std/flash9/events/FullScreenEvent.hx

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