Here is some code I have.
[code]
_buttonUnderline = new Sprite();
with(_buttonUnderline.graphics) {
lineStyle(4, 0xACACAC);
moveTo( -2, 0);
lineTo(2, 0);
}
_buttonUnderline.x = e.target.x + 104 / 2;
_buttonUnderline.y = e.target.y + e.target.height + 10;
addChild(_buttonUnderline);
new Tween(_buttonUnderline, "width", Elastic.easeInOut,
_buttonUnderline.width, e.target.width, 1, true);
[/code]
When the Tween takes place though it not only changes the
width, it changes the height as if it were scaling it up in both
directions. Why does this behavior take place? And how can I get it
so that only the width changes? I have also tried using scaleX as
the property but it does the same thing.
Thanks!
Kyle