Flash Scaling Background
- Started
- Last post
- 12 Responses
- weldedturkey
A while back there was a link/article about having an Image on the bottom layer of your flash movie scale with the browser while the rest of the content stays centered or justifieed left/right. Anybody remember the link, or know how to do do this?
- sureshot0
yes.
- sureshot0
create s background image as a movie clip, then add the frame actions, (to the frame that contains the clip)
Stage.scaleMode = "noScale";
Stage.align = "LT";
instanceNameOfBgClip.onResize = function() {
this._width = Stage.width;
this._height = Stage.height;
};
Stage.addListener(instanceNameOf...publish your file at 100% of course
- weldedturkey0
THANKS! trying it now
- weldedturkey0
Great. That totally works perfectly.
Can you use variations of that script to make other layers align left, or align right?
- sureshot0
yes you can.
hold on there for a sec please sir.
- sureshot0
here it is..BTW you can find all this fancy stuff by searching google..thats how i found it anyway ;)
http://www.macromedia.com/suppor…
thank me later!
- sureshot0
i miss read your question...
but this might come in handy anyway.i never tried that shit you are saying..look into macromedias
site i am confident you find an anwser there.
- weldedturkey0
dig your site bro. tight.
so how can I set the alignment of an MC within flash to be left/top with like 30px offset from the sides?
- weldedturkey0
Thanks a millions for your help.
- stewart0
40px offset from right =
Stage.width - 40
and so on...
- lvl_130
this may be of some help:
http://www.moock.org/asdg/techno…it was a link posted in a previous discussion here