[Tweener] removing tweens
Niklas Hallgren / Wide Circle
niklas at widecircle.se
Wed Jul 25 15:42:04 PDT 2007
Hi there!
I've run into a problem.
I have a mc (txtNyheter) that is located inside another mc (contentMC).
txtNyheter is animated in with tweener - code below.
Once the animation has stopped I will scroll txtNyheter inside a maskarea
but now something strange is happening. When I scroll the mc animates
backwards to the original position with tweening and all. I guess I have to
remove the tween but still keep the mc in its new position. I thought the
code below would work but it doesn't... :-(
Tweener.addTween(contentMC.txtNyheter, {_x:contentMC.txtNyheter._x+287,
time:0.4, delay:1.7, transition:"easeOutQuart", onOmplete:done});
function done() {
Tweener.removeTweens(contentMC.txtNyheter);
};
I've also tried removing the tween with this:
Tweener.addTween(contentMC.txtNyheter, {_x:contentMC.txtNyheter._x+287,
time:0.4, delay:1.7, transition:"easeOutQuart" });
function wait() {
clearInterval(myTimer);
Tweener.removeTweens(contentMC.txtNyheter);
}
myTimer = setInterval(wait, 2100);
But this seems to move the mc to the original position as well...
Does anyone have any ideas?
//--------------------------------------------------------------------------
-----------------------
Niklas Hallgren
Wide Circle
qww.widecircle.se
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20070726/90ab7a1d/attachment.htm
More information about the Tweener
mailing list