From: steeve on 2 Aug 2007 17:49 I'll look into it-- Good idea on tweening the x or y A sincere thanks--
From: dzedward on 2 Aug 2007 18:11 you're welcome, case closed.. I'm done with this topic.
From: steeve on 3 Aug 2007 10:15 A follow-up: I repeated the code -- but am doing something wrong. I'm getting an error involved the "}" thanks Steven import mx.transitions.easing.easeNone; import mx.transitions.Tween; var tw:Tween = new Tween(news_mc, "_xscale", Strong.easeeaseNone, news_mc._xscale, 300, 2, true); var tw2:Tween = new Tween(news_mc, "_yscale", Strong.easeeaseNone, news_mc._yscale, 300, 2, true); tw2.onMotionFinished = function() { wait = setInterval(waiting, 2000); function waiting() { var tw3:Tween = new Tween(news_mc, "_xscale", Strong.easeeaseNone, 300, 0, 1, true); var tw4:Tween = new Tween(news_mc, "_yscale", Strong.easeeaseNone, 300, 0, 1, true); var tw5:Tween = new Tween(news_mc, "_alpha", Strong.easeeaseNone, 100, 0, 1, true); tw5.onMotionFinished = function() { var tw6:Tween = new Tween(news2_mc, "_xscale", Strong.easeeaseNone, news2_mc._xscale, 300, 2, true); var tw7:Tween = new Tween(news2_mc, "_yscale", Strong.easeeaseNone, news2_mc._yscale, 300, 2, true); tw7.onMotionFinished = function() { wait = setInterval(waiting, 2000); function waiting() { var tw8:Tween = new Tween(news2_mc, "_xscale", Strong.easeeaseNone, 300, 0, 1, true); var tw9:Tween = new Tween(news2_mc, "_yscale", Strong.easeeaseNone, 300, 0, 1, true); var tw10:Tween = new Tween(news2_mc, "_alpha", Strong.easeeaseNone, 100, 0, 1, true); tw10.onMotionFinished = function() { //insert new Tween here for another MC }; clearInterval(wait); } };
From: dzedward on 3 Aug 2007 12:27 .. import mx.transitions.easing.easeNone; import mx.transitions.Tween; var tw:Tween = new Tween(news_mc, "_xscale", Strong.easeeaseNone, news_mc._xscale, 125, 2, true); var tw2:Tween = new Tween(news_mc, "_yscale", Strong.easeeaseNone, news_mc._yscale, 125, 2, true); tw2.onMotionFinished = function() { wait = setInterval(waiting, 2000); function waiting() { var tw3:Tween = new Tween(news_mc, "_xscale", Strong.easeeaseNone, 125, 0, 1, true); var tw4:Tween = new Tween(news_mc, "_yscale", Strong.easeeaseNone, 125, 0, 1, true); var tw5:Tween = new Tween(news_mc, "_alpha", Strong.easeeaseNone, 100, 0, 1, true); clearInterval(wait); tw5.onMotionFinished = function() { wait2 = setInterval(waiting2, 2000); function waiting2() { var tw3:Tween = new Tween(news2_mc, "_xscale", Strong.easeeaseNone, 125, 0, 1, true); var tw4:Tween = new Tween(news2_mc, "_yscale", Strong.easeeaseNone, 125, 0, 1, true); var tw5:Tween = new Tween(news2_mc, "_alpha", Strong.easeeaseNone, 100, 0, 1, true); clearInterval(wait2); tw5.onMotionFinished = function() { //insert new Tween here for another MC }; } }; } };
From: steeve on 3 Aug 2007 13:42
I'm very very close-- You code doesnt zoom in the 2nd headline -- I tried to add it that here it is: import mx.transitions.easing.easeNone; import mx.transitions.Tween; var tw:Tween = new Tween(news_mc, "_xscale", Strong.easeeaseNone, news_mc._xscale, 125, 2, true); var tw2:Tween = new Tween(news_mc, "_yscale", Strong.easeeaseNone, news_mc._yscale, 125, 2, true); tw2.onMotionFinished = function() { wait = setInterval(waiting, 2000); function waiting() { var tw3:Tween = new Tween(news_mc, "_xscale", Strong.easeeaseNone, 125, 0, 1, true); var tw4:Tween = new Tween(news_mc, "_yscale", Strong.easeeaseNone, 125, 0, 1, true); var tw5:Tween = new Tween(news_mc, "_alpha", Strong.easeeaseNone, 100, 0, 1, true); clearInterval(wait); tw5.onMotionFinished = function() { wait2 = setInterval(waiting2, 2000); function waiting2() { var tw6:Tween = new Tween(news2_mc, "_xscale", Strong.easeeaseNone, news2_mc._xscale, 125, 2, true); var tw7:Tween = new Tween(news2_mc, "_yscale", Strong.easeeaseNone, news2_mc._yscale, 125, 2, true); wait3 = setInterval(waiting3, 2000); function waiting() { var tw8:Tween = new Tween(news2_mc, "_xscale", Strong.easeeaseNone, 125, 0, 1, true); var tw9:Tween = new Tween(news2_mc, "_yscale", Strong.easeeaseNone, 125, 0, 1, true); var tw10:Tween = new Tween(news2_mc, "_alpha", Strong.easeeaseNone, 100, 0, 1, true); clearInterval(wait2); clearInterval(wait3); tw10.onMotionFinished = function() { //insert new Tween here for another MC }; } }; } }; |