Here I have provided the code for the Actionscript 3 as follows. You can grasp whatever is needed for your script to convert it from AS2 to AS3. But make sure that this is not the code that automatically converts the AS2 to AS3.
Code:
Stage.scaleMode = StageScaleMode.NO_SCALE;
Stage.align = StageAlign.TOP_LEFT;
stage.addEventListener (Event.RESIZE, __onStageResized)
__onStageResized function (event: Event): void
{
var w: int = stage.stageWidth, h: int = stage.stageHeight;
/ / Resizes here or replace your items according to the new size of the course
}
Bookmarks