Terumi
06-05-2007, 10:36 AM
Hi all,
I've made a function which takes a number of variables in order to tween a movie clip. All the parameters I pass to the function work fine except from the tweenType variable.
I declare something like:
//other statements
var tweenType:String = "Bounce.easeOut";
//other statements
And the lines of the function that utilize that variable are:
//other statements
new Tween(tweenObject, tweenProperty, tweenType, startValue, endValue, tweenspeed, true);
//other statements
I suspect that I'm passing a wrong datatype (string), as the tween type is a class.
I even tried to do something like this:
new Tween(tweenObject, tweenProperty, ""+tweenType+"", startValue, endValue, tweenspeed, true);
but nothing....
Any suggestions?
Thank you.
I've made a function which takes a number of variables in order to tween a movie clip. All the parameters I pass to the function work fine except from the tweenType variable.
I declare something like:
//other statements
var tweenType:String = "Bounce.easeOut";
//other statements
And the lines of the function that utilize that variable are:
//other statements
new Tween(tweenObject, tweenProperty, tweenType, startValue, endValue, tweenspeed, true);
//other statements
I suspect that I'm passing a wrong datatype (string), as the tween type is a class.
I even tried to do something like this:
new Tween(tweenObject, tweenProperty, ""+tweenType+"", startValue, endValue, tweenspeed, true);
but nothing....
Any suggestions?
Thank you.