New to the forum, and I tried to find if someone else had my problem but doesn't seem so.
I am building a pretty simple site for myself. Something similar to THIS.
Where I am getting hung up is trying to implement the killTweensOf via TweenMax or TimelineLite/Max. I saw a post about doing it through an array, but that didn't do it either. On that example site, when you move from one button to another, the other disappears. On my .fla I have it set-up a little different, but same concept. If someone that understands TweenLite/Max could help shed some light for me, that would be marvellous!
To keep ya from being blind, here's the part of my code I'm perplexed with.
test_btn.addEventListener(MouseEvent.MOUSE_OVER, overHandler);
function overHandler(event:MouseEvent):void {
TweenMax.to(booger2_mc, .5, {bezier:[{x:263.2, y:89.5}], ease:Expo.easeOut});
TweenMax.to(dropdown_mc, 1, {bezier:[{x:0, y:134.2}], ease:Bounce.easeOut});
}
test1_btn.addEventListener(MouseEvent.MOUSE_OVER, overHandler1);
function overHandler1(event:MouseEvent):void {
TweenMax.to(booger1_mc, .5, {bezier:[{x:361, y:89.5}], ease:Expo.easeOut});
TweenMax.to(dropdown_mc, 1, {bezier:[{x:0, y:134.2}], ease:Bounce.easeOut});
}
test2_btn.addEventListener(MouseEvent.MOUSE_OVER, overHandler2);
function overHandler2(event:MouseEvent):void {
TweenMax.to(booger3_mc, .5, {bezier:[{x:462.2, y:89.5}], ease:Expo.easeOut});
TweenMax.to(dropdown_mc, 1, {bezier:[{x:0, y:134.2}], ease:Bounce.easeOut});
}
dropdown_mc.addEventListener(MouseEvent.MOUSE_OUT, outHandler);
function outHandler(event:MouseEvent):void {
TweenMax.to(booger3_mc, .6, {bezier:[{x:462.2, y:50.5}], ease:Expo.easeIn});
TweenMax.to(booger2_mc, .6, {bezier:[{x:263.2, y:50.5}], ease:Expo.easeIn});
TweenMax.to(booger1_mc, .6, {bezier:[{x:361, y:50.5}], ease:Expo.easeIn});
TweenMax.to(dropdown_mc, .93, {bezier:[{x:0, y:91.2}], ease:Expo.easeIn});
}
Each _btn has a small bit of code internally making it a MC button. Just so it'll change color when moused over and that's partly why I'm trying to kill it when mousing over one of the other buttons.
Thank you in advance,
Charlie