easily resize flash stage dynamically: BrowserCanvas rocks

Over at doesnotcompute the headline reads: “BrowserCanvas. The World’s Easiest Way to Dynamically Resize Flash”. It’s true.

A few months back I looked into this in preparation for a current project. Checked it out, put it aside for later. Now is later, and the proof is in: this is really easy to implement. It took no time to integrate the BrowserCanvas class into my code and use it successfully. Very very nice.

Noel Billig, maker of BrowserCanvas, mentions a few things that you have to have set right to make it work. Reiterating what I needed to do here, just for convenience:

First, the stage settings:

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = stage.align = StageAlign.TOP_LEFT;

Then, if you want to view the effects locally (from a file, not over http), you need to set the security for your Flash player accordingly.

That’s it. It’s very satisfying to use a tool like this and have it all go so smoothly. I needed that. Thanks Noel!  :)

This entry was posted in flash, actionscript, flex and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s