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.


 Subscribe in a reader

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

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Apr 7th, 2004, 12:59
New Member
Join Date: Apr 2004
Location: United Kingdom
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Apr 7th, 2004, 14: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 15:09
Content stretching? PicoDeath Web Page Design 2 Aug 16th, 2007 14:37
div not stretching rabidmuskrat Web Page Design 2 Jul 6th, 2007 04:25
Stretching Tables alio Web Page Design 3 Jan 1st, 2007 01:59


All times are GMT. The time now is 01:29.


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