Home
> FlashEff 2.0
> Topic
Play / Pause Button not stopping effects playing
Posted by reders
Play / Pause Button not stopping effects playing January 10, 2011 11:14AM | Registered: 14 years ago Posts: 2 |
Please help,
I have created my animation and added a play /pause button to the main timeline with this code:
gobutton.addEventListener(MouseEvent.CLICK, startplaying);
function startplaying(event:MouseEvent):void {
play();
handanim.play();
}
pausebutton.addEventListener(MouseEvent.CLICK, stopplaying);
function stopplaying(event:MouseEvent):void {
stop();
handanim.stop();
}
This is working fine, BUT
It does not pause the animation created by 'FLASHeff', please can you tell me how I do this or can anybody point me in the right direction?
Kindest Regards,
Sean R.
I have created my animation and added a play /pause button to the main timeline with this code:
gobutton.addEventListener(MouseEvent.CLICK, startplaying);
function startplaying(event:MouseEvent):void {
play();
handanim.play();
}
pausebutton.addEventListener(MouseEvent.CLICK, stopplaying);
function stopplaying(event:MouseEvent):void {
stop();
handanim.stop();
}
This is working fine, BUT
It does not pause the animation created by 'FLASHeff', please can you tell me how I do this or can anybody point me in the right direction?
Kindest Regards,
Sean R.
Re: Play / Pause Button not stopping effects playing January 10, 2011 01:03PM | Admin Registered: 15 years ago Posts: 547 |
@reders,
Here is the code, but you will only be able to stop the effect completely and when you want the effect to start again will start from the beginning and will not continue from where it was when you pause the animation.
gobutton.addEventListener(MouseEvent.CLICK, startplaying);
function startplaying(event:MouseEvent):void {
play();
handanim.play();
flasheffInstance.show()
}
pausebutton.addEventListener(MouseEvent.CLICK, stopplaying);
function stopplaying(event:MouseEvent):void {
stop();
handanim.stop();
flasheffInstance.removeEffect()
}
Here is the code, but you will only be able to stop the effect completely and when you want the effect to start again will start from the beginning and will not continue from where it was when you pause the animation.
gobutton.addEventListener(MouseEvent.CLICK, startplaying);
function startplaying(event:MouseEvent):void {
play();
handanim.play();
flasheffInstance.show()
}
pausebutton.addEventListener(MouseEvent.CLICK, stopplaying);
function stopplaying(event:MouseEvent):void {
stop();
handanim.stop();
flasheffInstance.removeEffect()
}
Re: Play / Pause Button not stopping effects playing October 13, 2011 10:27AM | Registered: 12 years ago Posts: 1 |
HI
We want to pause and play (Start and Stop) an effect in between . requesting your assistance on the same
e.g.
Say the tween duration is “4 seconds”, we click on pause button when the time is “1.5 seconds” the effect needs to stop and later we click on play button say after “10 seconds ” the animation has to continue from 1.5 Seconds and run for the next “2.5 seconds”
regards,
sikander khan
(sikander_khan@idealake.com)
We want to pause and play (Start and Stop) an effect in between . requesting your assistance on the same
e.g.
Say the tween duration is “4 seconds”, we click on pause button when the time is “1.5 seconds” the effect needs to stop and later we click on play button say after “10 seconds ” the animation has to continue from 1.5 Seconds and run for the next “2.5 seconds”
regards,
sikander khan
(sikander_khan@idealake.com)
Re: Play / Pause Button not stopping effects playing October 14, 2011 12:36PM | Admin Registered: 15 years ago Posts: 547 |
Sorry, you do not have permission to post/reply in this forum.