Results 1 to 2 of 2
September 29th, 2009, 08:08 PM #13Registered User
Stretch a movieclip to the browser size
I want to have a background movieclip of my SWF stretch to fill the browser window. I know there is a way to detect the size of the browser window in ActionScript, but I am unsure how to tell a movieclip to use those dimensions. I don't need to worry about changing the proportion of the movie clip as it is just a solid color.
Can someone help me out with code to do this? Thanks so much!
October 1st, 2009, 09:02 AM #259Registered User
You need to listen to the RESIZE event. Have a look at the example at the bottom of this page :
Notice the "stage.stageWidth" and "stage.stageHeight". These are the values you're looking for.