This is the perfect scenario for using any of the many tweening classes...
It might seem a bit confusing at first, but once you get familiar with them
you'll wonder how you ever lived without them.

I like...
http://hosted.zeh.com.br/mctween/
(has filter tweens which are nice, and I like the way the callback functions
work)

otherwise...
http://laco.wz.cz/tween/
(quite popular)

or Macromedia actually have some built in to Flash
(Search Flash help for "About the Tween class").


On 6/30/06, jcarlos <[EMAIL PROTECTED]> wrote:

I want to understand which is the "best/right" way to concatenate movies
which are dependent on serInterval to finish their execution,

example

this is part of a very simple image slice movement, I can have n slices,
but just after the finish of the last one I´d like "to know" that it has
finished and then start another animation


for (var i = 0; i < nTarjas; i++)
{
     tarja[i] = this.attachMovie ("mcTarjas", "tarja" + i,
this.getNextHighestDepth ());
     tarja[i]._x = posXInicial + i * deltaX;
     tarja[i]._y = 0;
     tarja[i]._alpha = (100 - deltaX) + i;
     intervalo[i] = setInterval (moveTarja, deltaTime, i, deltaX);
}

function moveTarja (atual, deltaX)
{
     tarja[atual]._x -= deltaX;
    if (tarja[atual]._x < deltaX * atual)
    {

        clearInterval (intervalo[atual]);
    }
}


stop ();


this code is on the timeline, is not attached to any AS 2 external class

I understand the callBack function concept but I don´t realize how to
implement it in this situation , like

myAnimation.onFinished = function()
{
     //  do another thing
}


thanks for any help

João Carlos
Brazil
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to