Listeners for the Event.RESIZE event must be registered with Flash Player's Stage instance, : Event : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Event »

 

Listeners for the Event.RESIZE event must be registered with Flash Player's Stage instance,


 
package {
  import flash.display.*;
  import flash.events.*;

  public class Main extends Sprite {
    public function Main(  ) {
      stage.scaleMode = StageScaleMode.NO_SCALE;
      stage.addEventListener(Event.RESIZE, resizeListener);
    }

    private function resizeListener (e:Event):void {
      trace("Flash Player was resized");
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» Event