I need some help here, please.
I have several buttons calling the bounceOut() function and
the bounceOut() function calls the onMotionFinish() function. After
that function is finished I want to go back to the original calling
function. Can someone help me with this?
First a call is made to bounceOut() when a button is clicked.
I have ten buttons.
function bounceOut() {
var smSlide:Tween=new
Tween(sideMenu_mc,"x",Regular.easeOut,200,-200,2,true);
smSlide.addEventListener(TweenEvent.MOTION_FINISH,
onMotionFinish);
}
function onMotionFinish(event:Event):void {
removeChild(pageTitle);
removeChild(sideMenu_mc);
removeChild(missionContent_mc);
removeChild(missionTitle_mc);
}