Hello everyone! just thought i'd drop in and see if anyone can help me with my issue (which I imagine is a simple one).
What I have is a movie clip labeled (cubeVid) on the timeline which i'm trying to tween in reverse. Basically the movieclip plays and inside the movieclip there is a stop(); command so it doesn't loop. What I am trying to do is make a button on the main timeline when pressed will tween the movie clip to play in reverse. I've tried this so many times different ways, even different types of movie clips. still NOTHING. It's like it ignores me. Am I doing something that isn't possible? Here is my code.
import com.greensock.*
import com.greensock.easing.*;
stop();
cubeVid.stop();
var myTween:TweenLite = new TweenLite(cubeVid, 1, {frame:1}); //this makes a variable so I can control it with say....a function!
button.addEventListener(MouseEvent.MOUSE_DOWN, backwards); // simple event listener on the button to listen for a click.
function backwards(event:MouseEvent) : void //the function that is SUPPOSED to make the movieclip play backwards and ease nicely with tweenLite.
{
trace("Button Clicked, anything happen?"); //tracing to make sure the button code works and its being clicked.
myTween.play(); /plays the tween I setup earlier
}
I've even tried doing the TweenLite.to command in the function itself. I can move the movie clip around, adjust its alpha, tint EVERYTHING so I know its setup and working properly, but when I try to rewind or even play the movieclip it won't work. I hope i'im doing something terribly wrong and it's obvious to someone. I love tweenLite!
-Matt