Pause/Play MovieClip

  • Tristessa
  • Born
  • Born
  • Tristessa
  • Posts: 1

Post 3+ Months Ago

It seems simple enough and I have done it before but in this movie clip I have some script which fades an image to white and then moves to the next frame.

I want to stop the fade to white script when the pause button is played. Below is the code:

Code: [ Select ]
function onEnd(){
    gotoAndStop(this._currentframe+1);
}
rn26.brightOffsetTo(100,0.5,"easeOutSine",5,onEnd);
  1. function onEnd(){
  2.     gotoAndStop(this._currentframe+1);
  3. }
  4. rn26.brightOffsetTo(100,0.5,"easeOutSine",5,onEnd);


Script breakdown:
rn26 is my movieclip
beightOffSetTo and 100 is the fade to white
0.5 is how fast
easeOutSine is the transition
5 is the delay (I want to stop this delay on pause)
onEnd plays my function to go to the next frame

My pause button is called pause_btn. I've tried numerous ways to get it to work but so far nothing has helped :(
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

you still didn't say what you used for fading.
is it actionscript with mx tween? (i'd said so since you mentioned something about easeOutSine, but i want to be sure)

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.