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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...