| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
i do lines
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? ...
|
|
|
|
|
|
#7 (permalink) |
|
Stupid Shit since 1982
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:
|
|
![]() |