Jump to content

Helps with AccionScrip


Recommended Posts


I need a movie fits flash to the size of an adjustable div to the size of screen.

I have tried it with the following code placing it in the first paper clip of the movie but it does´t work.


import flash.display.Stage;import flash.display.StageAlign;import flash.display.StageScaleMode;import flash.events.Event; var swfStage:Stage = videoScreen.stage;swfStage.scaleMode = StageScaleMode.NO_SCALE;swfStage.align = StageAlign.TOP_LEFT; function resizeDisplay(event:Event):void{ var swfWidth:int = swfStage.stageWidth; var swfHeight:int = swfStage.stageHeight; }


Can they help me?Thank you in advance


Gema. swfStage.addEventListener(Event.RESIZE, resizeDisplay);



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...