Re: Waiting For Completion

Christophe Porteneuve
2007-06-22T20:31:29Z

Hey George,

Look, this has been answered a gazillion times.  I''ll reply below, but
in the future please be nice enough to search the list''s archives, ok?

Effects are indeed run in parallel, unsynchronized fashion by default.
To chain them, the easiest way is to rely on an effect queue.  You can
use the default, global queue when there''s no conflicting use of it:

Effect.BlindDown(''MyElement'', { duration: 0.5 });
Effect.BlindUp(''MyElement'', { duration: 0.5, queue:
''end'' });

The second call implicitly relies on the ''global'' queue, with
position
''end''.  That''ll chain your effects up properly.  Look
at Scripty''s wiki
for details, or just grab my book when it hits Beta1 (around July 1):
effect queues are covered in detail ;-)

--
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org