-
I Like To Flash in Public ;)
onMotionFinished problem
Hi there I am having a problem
myTween2.onMotionFinished = function() { never gets called but
myTween.onMotionFinished = function() { does get called!!
Im trying to run each tween once the one before it has finished.
Code:
import mx.transitions.*;
import mx.transitions.easing.*;
var myTween = new mx.transitions.Tween(boxmc, "_xscale", mx.transitions.easing.Regular.easeInOut, 0, 7500, 1.5, true)
myTween.onMotionFinished = function() {
var myTween2 = new mx.transitions.Tween(boxmc, "_yscale", mx.transitions.easing.Regular.easeInOut, 100, 2000, 1, true)
}
myTween2.onMotionFinished = function() {
trace('i been called');
boxmctwo._visible = true;
var myTween3 = new mx.transitions.Tween(boxmctwo, "_xscale", mx.transitions.easing.Regular.easeInOut, 0, 7500, 1.5, true)
}
-
Media Developer
Place myTween2.onMotionFinished INSIDE the braces for myTween.onMotionFinished. So it looks like this:
Code:
myTween.onMotionFinished = function () {
var myTween2 = new mx.transitions.Tween (boxmc, "_yscale", mx.transitions.easing.Regular.easeInOut, 100, 2000, 1, true);
myTween2.onMotionFinished = function () {
trace ('i been called');
boxmctwo._visible = true;
var myTween3 = new mx.transitions.Tween (boxmctwo, "_xscale", mx.transitions.easing.Regular.easeInOut, 0, 7500, 1.5, true);
};
};
Dragontech Media
Magic.Fire.Content
-
Media Developer
Sorry about bringing this back. I was searching for something specific, and didn't notice the date attached.
Dragontech Media
Magic.Fire.Content
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|