AS3 – stage.scaleMode

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT

package classes{

import flash.display.Stage;
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;

public class viewer {
private var mcStage:Stage;
public function viewer():void {
init();
}

public function init():void {
mcStage.stage.scaleMode = StageScaleMode.NO_SCALE;
mcStage.stage.align = StageAlign.TOP_LEFT;
}
}
}

Leave a comment