Consider having more than one chain.

this.otherChain = new Chain();

Then push things into the appropriate bucket.

On Wed, Feb 23, 2011 at 9:26 AM, deefr <[email protected]> wrote:

> Hi Everyone-
>
> I'm working with Chain. I want to chain multiple functions together,
> some of which may work with Fx, dealing with multiple animations. When
> methods from a different class is called which has a delay of it's
> own, independent of the Chain (as shown in the Fx demos), it's not
> clear to me how to keep the next .callChain() from executing until the
> class method currently executing a delay/animation/etc.. has finished.
> Please see a very simple example of what has me confused below:
>
> http://jsfiddle.net/deefour/DuXLv/
>
> I want the output to console to be
>
> A
> B
> C
> D
>
> not
>
> A
> B
> D
> C
>
> I am hoping someone can modify my example to properly delay. To
> describe conceptually what I'm trying to do, it would be the same as
> me defining all of the Fx transitions in the chaining demo below
> within independent functions - those functions queued in a Chain - and
> each function within the chain containing a .callChain() for that same
> Chain instance - all while maintaining the same animation order
> instead of each .callChain() call being triggered as soon as each Fx
> transition has begun.
>
> http://jsfiddle.net/api/post/mootools/1.3/dependencies/more,art/
>
> Looking forward to your reply.
>

Reply via email to