Gema Posted February 11, 2015 Share Posted February 11, 2015 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); Link to comment Share on other sites More sharing options...
justsomeguy Posted February 11, 2015 Share Posted February 11, 2015 You're telling it not to scale, but don't you want it to scale to fit the size? Link to comment Share on other sites More sharing options...
Gema Posted February 12, 2015 Author Share Posted February 12, 2015 thanks. More Human Than Human. Really what desire is it scale. Then do I limit myself to taking this part of code or deberia to changing? Link to comment Share on other sites More sharing options...
justsomeguy Posted February 12, 2015 Share Posted February 12, 2015 I don't understand your question. But, about scaling, for this line:swfStage.scaleMode = StageScaleMode.NO_SCALE;It looks like your options for scaling are listed here:http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#scaleMode Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now