Skip to content

Instantly share code, notes, and snippets.

@KiriKiri
Created February 17, 2015 12:58
Show Gist options
  • Save KiriKiri/8c83a73b1021fdaca470 to your computer and use it in GitHub Desktop.
Save KiriKiri/8c83a73b1021fdaca470 to your computer and use it in GitHub Desktop.
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