Stage.hx 736 B

12345678910111213141516171819202122232425262728
  1. package flash;
  2. extern class Stage
  3. {
  4. static var width:Float;
  5. static var height:Float;
  6. static var scaleMode:String;
  7. static var align:String;
  8. static var showMenu:Bool;
  9. static function addListener(listener:Dynamic):Void;
  10. static function removeListener(listener:Dynamic):Void;
  11. #if flash8
  12. /**
  13. Set to "fullScreen" in order to set Flash to fullscreen
  14. (can only be done in Mouse/Keyboard event listener).
  15. Don't forget allowfullscreen="true" in your SWF parameters.
  16. **/
  17. static var displayState : String;
  18. static var fullScreenSourceRect : flash.geom.Rectangle<Int>;
  19. static dynamic function onFullScreen( full : Bool ) : Void;
  20. #end
  21. private static function __init__() : Void untyped {
  22. flash.Stage = _global["Stage"];
  23. }
  24. }