From: dzedward on
what i gave scales it 25% over a 5 second period, then when that is done, it
scales it to nothing, completely gone. change to this to add a fade when its
scaling out.. but i dont know what you mean when you say it zooms then zooms
back out then goes away...

var tw:Tween = new Tween(news_mc, "_xscale", Strong.easeOut, news_mc._xscale,
125, 5, true);
var tw2:Tween = new Tween(news_mc, "_yscale", Strong.easeOut, news_mc._yscale,
125, 5, true);
tw2.onMotionFinished = function(){
var tw3:Tween = new Tween(news_mc, "_xscale", Strong.easeOut, 125, 0, 1,
true);
var tw4:Tween = new Tween(news_mc, "_yscale", Strong.easeOut, 125, 0, 1,
true);
var tw5:Tween = new Tween(news_mc, "_alpha", Strong.easeOut, 100, 0, 1, true);
}

From: steeve on
Thanks
I tweeked it, this is what I meant:
var tw:Tween = new Tween(news_mc, "_xscale", Strong.easeOut, news_mc._xscale,
125, 5, true);
var tw2:Tween = new Tween(news_mc, "_yscale", Strong.easeOut, news_mc._yscale,
125, 5, true);
tw2.onMotionFinished = function(){
var tw3:Tween = new Tween(news_mc, "_xscale", Strong.easeOut, 125, 500, 1,
true);
var tw4:Tween = new Tween(news_mc, "_yscale", Strong.easeOut, 125, 500, 1,
true);
var tw5:Tween = new Tween(news_mc, "_alpha", Strong.easeOut, 100, 0, 1, true);
}

3 questions:
1) The action after "tw2.onMotionFinished = function(){" repeats itself. How
can get it to play once then stop?

2) The 5 sec zoom to 125: The actual zoom seems to take 3 sec, then it hangs
for 2 sec, and then it executes the next command

3) what we are building here is a news headline. What is the best way to get 4
or 5 headlines with this code to work together -- one after the other?
I've been playing around and placing them on diff layers on the timeline-
doesnt seem like it the best way.

From: steeve on
Thanks
I tweeked it, this is what I meant:
var tw:Tween = new Tween(news_mc, "_xscale", Strong.easeOut, news_mc._xscale,
125, 5, true);
var tw2:Tween = new Tween(news_mc, "_yscale", Strong.easeOut, news_mc._yscale,
125, 5, true);
tw2.onMotionFinished = function(){
var tw3:Tween = new Tween(news_mc, "_xscale", Strong.easeOut, 125, 500, 1,
true);
var tw4:Tween = new Tween(news_mc, "_yscale", Strong.easeOut, 125, 500, 1,
true);
var tw5:Tween = new Tween(news_mc, "_alpha", Strong.easeOut, 100, 0, 1, true);
}

3 questions:
1) The action after "tw2.onMotionFinished = function(){" repeats itself. How
can get it to play once then stop?

2) The 5 sec zoom to 125: The actual zoom seems to take 3 sec, then it hangs
for 2 sec, and then it executes the next command

3) what we are building here is a news headline. What is the best way to get 4
or 5 headlines with this code to work together -- one after the other?
I've been playing around and placing them on diff layers on the timeline-
doesnt seem like it the best way.

From: dzedward on
Why are you doing this "Strong.easeOut, 125, 500, 1, true)"
that is going to make it scale larger, not scale to nothing like I thought you
wanted originally.

1) There is no reason that should be repeating
2)It is because of the Strong.easeOut, change it to None.easeNone, and change
import mx.transitions.easing.Strong; to ...easing.None;
3)apply the same code to a different MC in an tw5.onMotionFinished function.

From: steeve on
thanks.

It looks better than scale, but still awefully jittery.
I think it's more prononuced because of the slow fade.
Any ideas? Maybe I can speed up the fade to 1 sec and hold the text for 5,
then execute the reverse fade.
BTW, after looking at it, I like your scale to zero more than my scale to 500

For some reason, it IS repeating the reverse fade action.

OK so I applied the same code to different MC's -- how do I time-seperate
them?