Share Posted July 16, 2009 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 More sharing options...
Share Posted July 16, 2009 //create the tween going to frame 8 var myTween:TweenMax = new TweenMax(mc, 1, {frame:8, ease:Linear.easeNone}); //pause it anytime myTween.pause(); //resume it anytime myTween.resume(); //reverse it anytime myTween.reverse(); Link to comment Share on other sites More sharing options...
Author Share Posted October 28, 2009 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 More sharing options...
Share Posted October 28, 2009 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 More sharing options...
Author Share Posted October 28, 2009 Yeah, I'm in v11. I'm using a mouseOver listener to resume, and a mouseOut listener to reverse, it's kind of weird. It just never goes back to alpha 0 on mouseOut. Thanks, Javier Link to comment Share on other sites More sharing options...
Share Posted October 28, 2009 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 More sharing options...
Author Share Posted October 29, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now