Created
February 17, 2015 12:58
-
-
Save KiriKiri/8c83a73b1021fdaca470 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class *** extends Sprite | |
{ | |
private var mainView : MainView; | |
private var debugView : DebugView; | |
public function new() | |
{ | |
super(); | |
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage); | |
} | |
function onAddedToStage(event:Event) | |
{ | |
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage); | |
stage.scaleMode = StageScaleMode.NO_SCALE; | |
stage.align = StageAlign.TOP_LEFT; | |
trace("Width: " + stage.stageWidth); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment