From: steeve on
I'll look into it--
Good idea on tweening the x or y

A sincere thanks--

From: dzedward on
you're welcome, case closed.. I'm done with this topic.
From: steeve on
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
..

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
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
};
}
};
}
};

First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11
Prev: swf into html
Next: difference between fl and flash libraries?