Hello friends,
I am using the Tween class’ Bounce.easeOut method to bring something on to and off the stage like so (based on a button’s rollover/rollout):
function speakersBoing(which) {
if (which == "over") {
trace("Speakers Mouse Over");
speakersUp = null;
var speakersDown:Object = new Tween(_root.speakers, "_y", Bounce.easeOut, _root.speakers._y, 0, 2, true);
} else if (which == "out") {
trace("Speakers Mouse Out");
speakersDown = null;
var speakersUp:Object = new Tween(_root.speakers, "_y", Bounce.easeOut, _root.speakers._y, -600, 1, true);
}
}
It bounces in and bounces out just fine, unless I roll out too quickly. When I rollover and start the Bounce tween and rollout right away, it’ll come in and leave nicely, but then at the end of the Bounce out, it’ll pop up onto the stage at the final Y coordinate of the Bounce in…
Does that make sense? Does anything in the code jump out as a poke in the eye with a sharp stick?
Thanks in advance!
lrhb :hat: