Jump to content
Search Community

Tweening Question (Loop + Pause + Resume)

Maggical test
Moderator Tag

Recommended Posts

Hi there, I'm Javier from Argentina and I'm starting out with AS3 and TweenLite/Max.

 

I'm an advanced user of mc_tween for all of you that know it.

 

I'm trying to achieve a simple matter here, and don't find the answer for this. Here's what I want to do...

 

I have a MovieClip with 8 frames... I need the folowing functions:

 

- One that starts/resumes those frames foward

- One that starts/resumes those frames backward

- One that pauses the current tween

 

Any ideas how to acomplish this? I'm trying some things but there must be simpler ways to do this with TweenLite/Max...

 

Thanks,

 

Javier

Link to comment
Share on other sites

  • 3 months later...

Reviving this thread because I have a question about this...

 

I've created my Tween like this:

 

tooltip_clip.alpha = 0;

var myTween:TweenMax = new TweenMax(tooltip_clip, 0.25, {alpha:1, ease:Linear.easeNone});

 

Then I use:

 

tooltip_clip.resume(); // And it plays correctly

 

But when I use:

 

tooltip_clip.reverse(); // It doesn't go to alpha 0

 

Any ideas?

 

Thanks,

 

Javier

Link to comment
Share on other sites

When you say it doesn't go to alpha 0, what does it do? And when are you calling it? You are using v11, right? And keep in mind that if you call reverse() right away, it doesn't automatically force the tween to the end and then move backwards towards the beginning. reverse() will always cause it to go towards the begninning, so if you call reverse() immediately, it will appear not to tween because it's already at the beginning! :)

Link to comment
Share on other sites

Please post an example of it being broken. Also, you might want to look into the difference between ROLL_OVER/ROLL_OUT and MOUSE_OVER/MOUSE_OUT - it's a common mistake that can cause some headaches. This is probably a silly question, but you are using AS3, right?

Link to comment
Share on other sites

Please post an example of it being broken. Also, you might want to look into the difference between ROLL_OVER/ROLL_OUT and MOUSE_OVER/MOUSE_OUT - it's a common mistake that can cause some headaches. This is probably a silly question, but you are using AS3, right?

 

Yeah, I'm using AS3. I'll check that out to see how to make it work...

 

Thanks,

 

Javier

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...