I have had to use MX tween classes for a project. Later into the project the need for a skip button was introduced. But as we know once a tween has started it will run no matter what. So I need to interrupt the tween and make it skip to the end. I googled and found the endTween function. but I am having trouble making it work. As I understand the function its supposed to make my tweens skip to the end and be done. But I am not having any luck. I have made a test code and could really use some help!
import mx.transitions.Tween;
import mx.transitions.easing.*;
var square:Object = new Tween(square_mc, "_x", Regular.easeOut, 0, 451, 5, true);
And I try to make this tween skip to the end with a button. I have tried with alot of different configurations. None of them work. This one here is just the last. But it dosent work either as stated:
btn_1.onRelease = function(){
trace("button works");
endTween(square_mc);
}
AKIRA