Hi everybody, i’m a new member from Italy. This forums it’s great.
I’m a newby with actionscript3, and i need help.
So every hint will be appreciated.
I need to change the movieclip in a tween at runtime. How can i do this?
var MC:MovieClip;
MC = Hello_MC;
xTween = new Tween(MC,“x”,Strong.easeInOut,x.x1,X,2,tr ue);
yTween = new Tween(MC,“y”,Strong.easeInOut,y,y1,2,tr ue);
function setnewTween(tweenX:Number,tweenY:Number):void
{
trace(MC);
xTween.begin = MC.x;
yTween.begin = MC.y;
xTween.finish = tweenX;
yTween.finish = tweenY;
xTween.start();
yTween.start();
}
This code doesn’t work.
Thank you in advance.
[IMG]http://www.flepstudio.org/forum/images/statusicon/user_offline.gif[/IMG] [[IMG]http://www.flepstudio.org/forum/images/vbseo/digg.gif[/IMG][URL="http://del.icio.us/post?url=http%3A%2F%2Fwww.flepstudio.org%2Fforum%2Factionscript-3-0-base%2F1664-cambiare-un-movie-clip-runtime.html%239411&title=Cambiare+un+movie+clip+a+runtime"][IMG]http://www.flepstudio.org/forum/images/vbseo/delicious.gif[/IMG][URL="http://technorati.com/faves/?add=http%3A%2F%2Fwww.flepstudio.org%2Fforum%2Factionscript-3-0-base%2F1664-cambiare-un-movie-clip-runtime.html%239411"][IMG]http://www.flepstudio.org/forum/images/vbseo/technorati.gif[/IMG][URL="http://furl.net/storeIt.jsp?u=http%3A%2F%2Fwww.flepstudio.org%2Fforum%2Factionscript-3-0-base%2F1664-cambiare-un-movie-clip-runtime.html%239411&t=Cambiare+un+movie+clip+a+runtime"][IMG]http://www.flepstudio.org/forum/images/vbseo/furl.gif[/IMG]](http://digg.com/submit?phase=2&url=http%3A%2F%2Fwww.flepstudio.org%2Fforum%2Factionscript-3-0-base%2F1664-cambiare-un-movie-clip-runtime.html%239411&title=Cambiare+un+movie+clip+a+runtime)
[[IMG]http://www.flepstudio.org/forum/images/buttons/quote.gif[/IMG]](http://www.flepstudio.org/forum/newreply.php?do=newreply&p=9411)