Skip navigation
Currently Being Moderated

Return to a calling function

Dec 15, 2008 8:52 AM

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);

}
 
Replies
  • Currently Being Moderated
    Dec 15, 2008 9:35 AM   in reply to TezS56
    What is the original calling function, and what do you need to accomplish there after the fact? The call to BouneOut(); can be followed by code in the original function, so I guess I'm not really clear on what you are after.
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points