Old 27-07-2005, 10:39   #1 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,227
absolute alignment?

erm, i've tried searching... but it looks like i don't know the exact magic word...
stretching flash with some elements always aligned top, right, left or bottom.. - how is this done?
the only example i can find right now is:

www.timomaas.com

if you notice, the player always stays at the top-centre. also, bottom-left bg image is always bottom-left... and a similar bg image on the right-centre... yet the .fla is set to 100%.

...how?
__________________
...
  Reply With Quote
Old 28-07-2005, 04:01   #2 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,227
am i making sense at all?
__________________
...
  Reply With Quote
Old 28-07-2005, 04:38   #3 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,235
yep makes sense to me. I don't know the answer though.
  Reply With Quote
Old 28-07-2005, 04:49   #4 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,227
thanks
now, none says "flashkit".
i tried them.
__________________
...
  Reply With Quote
Old 28-07-2005, 05:28   #5 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,486
have you tried flashk..

oh.
  Reply With Quote
Old 28-07-2005, 05:42   #6 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,227
__________________
...
  Reply With Quote
Old 28-07-2005, 12:00   #7 (permalink)
y498
Stupid Shit since 1982
 
y498's Avatar
 
Join Date: Feb 2005
Location: Calgary, Alberta, Canada
Posts: 155
What this does is scale the stage without scaling content, then it scales a movie clip and centers it to the stage. So basically I make the stage 100% of the browser window and then scaled a movie clip, bgFull_mc, to equal stage width and height. Last part, you add a listener, which detects if the browswer window has been resized, then resizes bgFull_mc as needed.

It is a start, you could create a movie clip and position it how you want, then tell it to match 100% stage width and height, play with it... Works great for backgrounds in flash...

Code:
// Control stage size without content resize. Stage.scaleMode = "noScale"; _root.bgFull_mc._width = Stage.width; _root.bgFull_mc._height = Stage.height; var myListener:Object = new Object(); myListener.onResize = function() { _root.bgFull_mc._width = Stage.width; _root.bgFull_mc._height = Stage.height; }; Stage.addListener(myListener);
  Reply With Quote
Old 29-07-2005, 04:05   #8 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,227
Great! it is a start, indeed... thanks!
I just can't get the bg's to behave... zzz
__________________
...
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8