Change tween properties outside constructor in Tween class
Hi,
Am trying to use the Tween class to scale and move a movieclip. Now the movieclip is within the loader, so I need the motion to be controlled by the percentage loaded. Now the code to move the movieclip to its final position is:
var xscaletween:Tween = new Tween(mstone, "_xscale", Regular.easeOut, mstone._xscale, 220, 6, true);
var yscaletween:Tween = new Tween(mstone, "_yscale", Regular.easeOut, mstone._yscale, 220, 6, true);
var xmovetween:Tween = new Tween(mstone, "_x", Regular.easeOut, 406, 130, 6, true);
var ymovetween:Tween = new Tween(mstone, "_y", Regular.easeOut, 144, 30, 6, true);
But this is the final location, I want to be able to change the properties of xscaletween, yscaletween, xmovetween and ymovetween as per percentage loaded. As in, within this final boundary limit of the tween, I want, for example, xscaletween, to scale only till 140 till percentage hits 50. Is this possible?? If not is there a workaround??
Or do I have to use new tweens within each percentage limit?
Any help will be greatly appreciated. This is my first time using the tween class, ever since Kglad suggested it regarding a previous problem, so excuse any ignorance. ![]()