2D Animation & Interactivity for the Modern Web
Stage2D
stage.scaleMode = StageScaleMode.SHOW_ALL; stage.scaleMode = StageScaleMode.NO_BORDER; stage.scaleMode = StageScaleMode.EXACT_FIT; stage.scaleMode = StageScaleMode.NO_SCALE;
Starling
starling = new Starling(Game, stage, new Rectangle(0, 0, screenWidth, screenHeight)); var isPad:Boolean = (screenWidth == 768 || screenWidth == 1536); starling.stage.stageWidth = isPad ? 384 : 320; starling.stage.stageHeight = isPad ? 512 : 480;HTML5
meta name="viewport" content="width=device-width, initial-scale=1"
StageXL
var stage = new Stage(canvas, width: 800, height: 600); stage.scaleMode = StageScaleMode.EXACT_FIT; stage.align = StageAlign.NONE;