PDA

View Full Version : Scaling the display on the web


vectorprime27
09-21-2009, 01:52 AM
My first Actionscript problem was solved in about a hour by posting to the Forum (thank you!), so I thought I'd toss my next problem out for the guru's to chomp on.

I have created an SWF with a 1000 x 700 pixel stage. My questions is this; what code can I use (or publish settings can I set in CS4) so that the SWF scales up or down and always fills the browser window? In other words, if I'm running my browser in full screen mode with a 1680 x 1050 widescreen display, I want the SWF to scale up to fit that monitor. Likewise, if I'm running an 800 x 600 display, I'd like it to scale down to fit that monitor as well. What I DO NOT want is for the SWF to open in a child window (as it does when I test the movie). Is this something that is easy to do, or have I opened a real den of snakes? Any help is greatly appreciated. Thank you!

shawnblais
09-21-2009, 03:18 AM
Maybe I can make it a 2fer today ;)

The best way imo is to use Javascript to size your container div for you. I spent a bunch of time writing my own fxn's to do this...but then I found this: http://swffit.millermedeiros.com/

vectorprime27
09-21-2009, 01:44 PM
Appears you are on a roll! Once again, thank you very much!