This is a discussion on "Stretching Backgrounds" within the Flash & Multimedia Forum section. This forum, and the thread "Stretching Backgrounds are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Stretching Backgrounds
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Stretching Backgrounds
Hi,
I'm new here and fairly new to flash. I'm redesigning my website at the moment and was wondering how you could make a background stretch to whatever screen resolution you're running at, for example: http://www.hi-res.net Thank in advance Ed |
|
|
|
|||
|
In Flash 6 a new object, the "Stage" object, was introduced.
This allows you to find out the current size of the swf and you can therefore do things accordingly. On the site you mentioned above, it looks like a background image inside a movieclip is being resized to be the same size as the visible SWF, while the content remains as a fixed size. You can accomplish this by settings the movie width and height to 100% in the HTML. You can then use
Stage.width and Stage height return the available Stage area. You can also control Stage.align and other functions. When you use those functions, they are setting up listeners to the Stage, so that the windows reposition themself whenever the stage resizes. |
![]() |
| Tags |
| stretching, backgrounds |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS ID selector not stretching | dental design | Web Page Design | 2 | Sep 17th, 2007 14:09 |
| Content stretching? | PicoDeath | Web Page Design | 2 | Aug 16th, 2007 13:37 |
| div not stretching | rabidmuskrat | Web Page Design | 2 | Jul 6th, 2007 03:25 |
| Stretching Tables | alio | Web Page Design | 3 | Jan 1st, 2007 00:59 |