You have to becareful how you call that, because as you're dragging it
out, calling about 3-4 times a second.
That could be related to your problem.
You're correct in that they are actually the same thing.
If you're trying to stretch it to the width of the stage, and it started
out as the width of the stage at creation.
The only thing you need to change is:
clip.scaleX = stage.stageWidth / startWidth; // If it was 1000 at start,
and stretched the window 2.5 times as big as it was originally, the new
width will be 2500.
Onedayitwillmake
http://onedayitwillmake.com
Pedro Kostelec wrote:
Hi,
i have a MC (footer background) that is scalled proportionally to the stage
width. I use Event.RESIZE and it works nice if i expand the window from its
borders or corners, but it doesn't work if i click the minimize/maxmize
button.
Aren't the minimize/maximize buttons the same as resizing the window in as3?
How could i make it treatable as a normal resize?
stage.addEventListener(Event.RESIZE, resizeHandler);
function resizeHandler(e:Event):void {
TweenLite.to(Footer_mc, .5, {alpha:1.0, y:(stage.stageHeight-bottomOffset),
x: stage.stageWidth/2, scaleX:(stage.stageWidth/Footer_mc.width),
ease:Elastic.easeOut, delay:0.2});
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
__ Information from ESET NOD32 Antivirus, version of virus signature
database 4211 (20090702) __
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders