"How is that kind of thing done? I know you can achieve some interestin
gthings
with scaleMode and Stage.align but I'm guessing something more complex is
going on here."
No - that's about it really. Just make sure your flash is embedded with 100%
width so the stage does actually change size with the browser.
//Set your movie up like:
Stage.align = "TL";
Stage.scaleMode = "noScale";
//Add a listener so things get adjusted when the stage is resized
var stageListener = new Object();
stageListener.onResize = function(){
alignContent();
}
Stage.addListener(stageListener);
//Use Stage.width to get the width of your stage (and Stage.height if
needed).
//When you want to align movieclips use:
function alignContent(){
myMC._x = Stage.width;
}
Depending on how your MCs are set up, you may have to do some adjusting
like:
myMC._x = Stage.width - myMC._width - 50;
Left aligned items don't really need anything.
On 6/11/06, Kevin Cannon <[EMAIL PROTECTED]> wrote:
Hi there,
I've seen a couple of design occasionally (like thefwa.com) that
dynamically
stretch and adjust with the width of the browser and the content.
How is that kind of thing done? I know you can achieve some interestin
gthings
with scaleMode and Stage.align but I'm guessing something more complex is
going on here.
I want to create a header banner, that fits into a flexible width site, so
it
needs to stretch with the page. The height will stay the same, and there's
some design elements that should be locked left, and some locked right.
Could anyone point me in the right direction. I've not had much trouble
with
google since i'm not entirely sure what the correct terms for this are.
Thanks!
- Kevin
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com