Hello:
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);