Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package
- {
- import flash.display.MovieClip;
- import flash.display.Sprite;
- import flash.display.StageAlign;
- import flash.display.StageScaleMode;
- import flash.events.Event;
- class Main extends MovieClip
- {
- public function Main()
- {
- super();
- addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
- }
- function onAddedToStage(event:Event):void
- {
- removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
- stage.scaleMode=StageScaleMode.NO_SCALE;
- stage.align=StageAlign.TOP_LEFT;
- stage.addEventListener(Event.RESIZE, onStageResize);
- onStageResize(null);
- }
- function onStageResize(event:Event):void
- {
- //video.width = stage.stageWidth;
- //video.height = stage.stageHeight
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment