Jump to content
Sign in to follow this  
Gema

Helps with AccionScrip

Recommended Posts

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

 

 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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
Sign in to follow this  

×