Results 1 to 2 of 2
-
September 29th, 2009, 08:08 PM #13Registered User
postsStretch a movieclip to the browser size
Hi there!
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
postsYou need to listen to the RESIZE event. Have a look at the example at the bottom of this page :
http://livedocs.adobe.com/flash/9.0/...l#event:resize
Notice the "stage.stageWidth" and "stage.stageHeight". These are the values you're looking for.

Reply With Quote


Bookmarks