/ Published in: ActionScript 3
Expand |
Embed | Plain Text
// resize bcgMC.width = stage.stageWidth; bcgMC.height = stage.stageHeight; bcgMC.scaleX > bcgMC.scaleY ? bcgMC.scaleY = bcgMC.scaleX : bcgMC.scaleX = bcgMC.scaleY; // center bcgMC.x = stage.stageWidth / 2 - bcgMC.width / 2; bcgMC.y = stage.stageHeight / 2 - bcgMC.height / 2;
You need to login to post a comment.
