> animatorgroup is supposed to support 'onstop' event, but after  brief look at the  LFC source code to me it looks like animator doesn't send that event. Anyone more familiar with this?
 
 animator extends animatorgroup; it does have an 'onstop' event. 

> I'm trying to detect when an animator has completed changing an
> attribute to the "to" value.  In the example below what I want to happen
> is that when you move the mouse into the red area then the area grows
> and if the grow completes then the text will become visible.  When you
> move the mouse out of the red area then the text becomes invisible and
> the view shrinks back.
 
What you want to do is a little more involved than starting and stopping the animators.
 
1. Create a method that sets content.visible to true.
2. Create a delegate for that method (dShow for our purposes).
3. In your 'onmouseover' method, start the max animator, then register dShow to max's 'onstop' event.
4. In your 'onmouseout' method, unregister dShow from max.onstop, set content invisible, call max.stop(), and start the min animation.

Hope this helps,
 
Dan Stowell
Software Engineer
Laszlo Studios


--
Sent with LaszloMail
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to