Go to nextFrame after Hide effect

Posted by losvatic 
Go to nextFrame after Hide effect
April 20, 2009 05:07PM
How can I get Flash to hold on a frame till the Hide Effect on a MC has finished?
Re: Go to nextFrame after Hide effect
April 24, 2009 10:52AM
Put a stop() on the top of the frame and then add an event listener on the Hide effect , When it's done just play() the timeline again.
Here is an example:

import com.jumpeye.Events.FLASHEFFEvents;

stop();

myEffect.addEventListener(FLASHEFFEvents. TRANSITION_END, transitionEndHandler);


function transitionEndHandler(evtObj:FLASHEFFEvents): void {
play();
}


myEffect is the instance name of the component that creates the fade effect.
Re: Go to nextFrame after Hide effect
June 03, 2009 01:21AM
I am trying to figure out how to achieve this effect (having the hide effect for the MC play before i am taken to the frame targeted by the button press). I am newer to action script and could not get this code to work.
Re: Go to nextFrame after Hide effect
June 03, 2009 06:01AM
Create a event listener on the button you want.
When the event is triggered you will call a function. In this function you should have something like this:
myEffect.addEventListener(FLASHEFFEvents. TRANSITION_END, transitionEndHandler);
After that you will need the following function:

function transitionEndHandler(evtObj:FLASHEFFEvents): void {
gotoAndPlay( whatEverFrameYouWant )
}

What this does is, when the button is clicked FlashEff starts hiding, but it will not go anywhere until the transition has ended.
Go to next Frame button
November 20, 2012 03:41AM
Hi, how can go to next and previous frame button?
Sorry, you do not have permission to post/reply in this forum.