jan_flanders

Untitled

Aug 29th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package
  2. {
  3.     import flash.display.MovieClip;
  4.     import flash.display.Sprite;
  5.     import flash.display.StageAlign;
  6.     import flash.display.StageScaleMode;
  7.     import flash.events.Event;
  8.  
  9.     class Main extends MovieClip
  10.     {
  11.  
  12.         public function Main()
  13.         {
  14.             super();
  15.             addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
  16.         }
  17.         function onAddedToStage(event:Event):void
  18.         {
  19.             removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
  20.             stage.scaleMode=StageScaleMode.NO_SCALE;
  21.             stage.align=StageAlign.TOP_LEFT;
  22.             stage.addEventListener(Event.RESIZE, onStageResize);
  23.             onStageResize(null);
  24.         }
  25.  
  26.         function onStageResize(event:Event):void
  27.         {
  28.             //video.width = stage.stageWidth;
  29.             //video.height = stage.stageHeight
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment