The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 2 of 2

Thread: Stretch a movieclip to the browser size

  1. #1

    Stretch 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!

  2. #2
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012