Jump to content


Fully resize a .swf

Recommended Posts

Hi everyone! :-P


First, sorry for my bad english, but I'm french!


I've made an application with no resizing functions

stage.align = StageAlign.TOP_LEFT;

stage.scaleMode = StageScaleMode.NO_SCALE;


It now works in 1920x1080. Everything is in place.


I'd like to know if it's possible to load this swf with SWFLoader and use something like :


private function resizeHandler ( e : Event ) : void



swfLoader.content.fitWidth = stage.stageWidth;

swfLoader.content.fitHeight = stage.stageHeight;



to resize it, depending on the size of the user's display. (as you would do with ImageLoader)

I've tried it but it doesn't seem to work.

Did I do somehing wrong?


Let me know !

Thank you

Link to comment
Share on other sites

hmmm. what does your SWFLoader code look like? are you setting a width, height and scaleMode in the SWFLoader vars?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.