Home
> FlashEff 1 (Discontinued version)
> Topic
Go to nextFrame after Hide effect
Posted by losvatic
Go to nextFrame after Hide effect April 20, 2009 05:07PM | Registered: 14 years ago Posts: 1 |
Re: Go to nextFrame after Hide effect April 24, 2009 10:52AM | Admin Registered: 15 years ago Posts: 405 |
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.
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 | Registered: 15 years ago Posts: 5 |
Re: Go to nextFrame after Hide effect June 03, 2009 06:01AM | Admin Registered: 15 years ago Posts: 405 |
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.
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 | Registered: 14 years ago Posts: 1 |
Sorry, you do not have permission to post/reply in this forum.