I am trying to get my animation to play in reverse order and this is a pain in my leg.
I have most of it figured out, this script below. I need to know if and how do I get this forward function to stop at a labled frame or key frame and not just use a number of px. In this example I have x: “100”. I need this to just play till it reaches a stop actions / lable frame or key frame. Any and all help will be very helpful. I have been trying to get this animation to play in reverse order for about a week now and I came across the TweenMax and it has a lot of good subclasses, but not much information online about the reverse subclass.
stop()
// importing the classes TweenMax and easing
import gs.TweenMax;
import fl.motion.easing.*;
var myTween:TweenMax; //Can be access from anywhere within “this” scope.
forward_btn.addEventListener(MouseEvent.CLICK, forward);
backward_btn.addEventListener(MouseEvent.CLICK, backward);
function forward(e:MouseEvent):void {
myTween = new TweenMax(box_mc, 1, {x: “100”});
};
function backward(e:MouseEvent):void {
trace(“testing”)
myTween.reverse();
};
soatman