Flash - stretchy/sticky
- Started
- Last post
- 11 Responses
- wrongtest
When you resize the browser how do they get the background to resize and the menu and logo to stay in the same place?
- UndoUndo0
using the stage class
- wrongtest0
That's great thanks - I'll check that out.
- Engage_London0
great site
- Stoph0
Interesting subject... cam anyone elaborate a bit more, any tutes around or anything???
Cheers
- Neuarmy0
this has actually been discussed a lot around here..
this will help:
http://moock.org/asdg/technotes/…but my question is, how do you get the background image to stretch in proportion so that it doesn't get distorted?
- UndoUndo0
its not stretched, its in the swf at the largest size that will be shown and they just display more of it if you have a larger monitor or browser
- unfittoprint0
if you have to compare the Stage.height/Stage.width to image.height/image.width
if > 1 scale image proportionaly to the Stage.height
else do it acrodingly to the Stage.width
- Neuarmy0
i miss you unfit!
- unfittoprint0
fuck
I'm writing like wendell
- UndoUndo0
oops, soory it does scale.
compare stage width to stage height and use that factor on the image. I think that is what unfit means.
- Engage_London0
yep... the image is probably 4*3...
if your is more widescreen then you centre it horizontally otherwise vertically