Stretching Backgrounds

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 7th, 2004, 11:59
New Member
Join Date: Apr 2004
Location: United Kingdom
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ed@thehaunting.net Send a message via AIM to ed@thehaunting.net
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

  #2 (permalink)  
Old Apr 7th, 2004, 13:54
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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
Code: Select all
Stage.scaleMode = "noScale"
in your actionscript to ensure you get no distortion.

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.
Closed Thread

Tags
stretching, backgrounds

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 08:11.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43