Hi all,
I'm getting %@!#!#!@
I have a mc and I want to use the Tweenclass in it.
I want the mc to do random things. I tried everything i guess, just not the right thing
my last code:
PHP Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var yScaleT:Tween = new Tween(this, "_rotation", Strong.easeInOut, -40, 40, 1, true);
yScaleT.onMotionFinished = function() {
_root.test = random(2);
//
if (_root.test == 0){
var yScaleT:Tween = new Tween(this, "_rotation", Strong.easeInOut, -40, 40, 1, true);
} else if (_root.test == 1){
var yScaleT:Tween = new Tween(this, "_rotation", Strong.easeInOut, -20, 20, 1, true);
}
What I want is different tweens on the same mc playing radom, after eachother?
Anyone?
Thanx!