|
Marcy
post date:
2008-03-30 22:36:45
|
Hello, I am doing a simple tween but onMostionFinished is not triggering.
function nuScene():Void {
var myTween = new Tween(mc,"_xscale",Regular.easeInOut,1,100,20);
myTween.start();
};
myTween.onMotionFinished = function() {
trace(">> onMotionFinished " );
}
|
|
|
Catalin Serban [Extend Studio]
post date:
2008-04-01 05:19:58
|
Hi,
You have to create the tween outside the function. Here is a sample code:
var myTween = new Tween(mc, "_xscale", Regular.easeInOut, 1, 100, 20);
function nuScene():Void {
_root.myTween.start();
}
myTween.onMotionFinished = function() {
trace(">> onMotionFinished ");
};
Regards,
Catalin Serban
|
|