[Laszlo-user] how to animate a view, then delete it?

William Krick wkrick at eio-online.com
Fri Apr 21 13:03:13 EDT 2006

In my app, have a button that deletes a view using destroy().
I want to be able to animate the view by fading it out before it is

Here's the code I have in the view...

<animator name="anim_del" attribute="opacity" from="1" to="0"
duration="500" start="false"/>

...and here's the button event...

<method name="delView" args="v">

The problem is that the destroy() method is called immedately before the
animation gets a chance to finish.

How do I solve this problem?

Is there any sort of end of animation trigger that I can hook onto?

More information about the Laszlo-user mailing list