MochiKit.Visual vs MochiKit.Deferred

View: New views
2 Messages — Rating Filter:   Alert me  

MochiKit.Visual vs MochiKit.Deferred

by Giulio Cesare Solaroli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

I have just started using the "new" MochiKit.Visual module only very
recently, and I con not find any suggestion on what I should do to
execute some of my own code when an animation is terminated.

I would feel very compelling to be able to wrap a whole animation
queue into a deferred object, and being able to have it returned an
empty value upon completion.

Does this make any sense? Is it already possible to achieve this same
result in another way?

Thank you very much for your kind attention.

Best regards,

Giulio Cesare

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: MochiKit.Visual vs MochiKit.Deferred

by Per Cederberg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Check out the "afterFinish" property (works for all animations).
Assign it to an event handler function and off you go.

http://www.mochikit.com/doc/html/MochiKit/Visual.html#fn-base

Cheers,

/Per

On Sun, Jun 29, 2008 at 3:52 AM, Giulio Cesare Solaroli
<giulio.cesare@...> wrote:

>
> Hello,
>
> I have just started using the "new" MochiKit.Visual module only very
> recently, and I con not find any suggestion on what I should do to
> execute some of my own code when an animation is terminated.
>
> I would feel very compelling to be able to wrap a whole animation
> queue into a deferred object, and being able to have it returned an
> empty value upon completion.
>
> Does this make any sense? Is it already possible to achieve this same
> result in another way?
>
> Thank you very much for your kind attention.
>
> Best regards,
>
> Giulio Cesare
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

LightInTheBox - Buy quality products at wholesale price