PDA

View Full Version : Animation: onstart event


drech
10-09-2008, 09:46 AM
Hey all,

I have this code:

<animatorgroup name="wfClose" id="wfClose" duration="2000" start="false" process="simultaneous">
<animatorgroup target="splitterTop">
<animator attribute="y" to="0" motion="linear"/>
<method event="onstart">
splitterTop.setAttribute("visibility", "visible");
splitterBottom.setAttribute("visibility", "visible");
</method>
<method event="onstop">
Debug.write("PostAnimate Stop - Close");
</method>
</animatorgroup>
<animatorgroup target="splitterBottom">
<animator attribute="y" to="${splitterTop.height}" motion="linear"/>
</animatorgroup>
</animatorgroup>


In the wfClose animation, I get the debug message sent in the onstop event. However, the onstart event never seems to be received when I call wfClose.doStart(). The animation runs, after doStart(), but nothing in the onstart handler gets executed.

Why?

rcyeager
10-09-2008, 10:01 AM
<method event=""> is deprecated, use <handler name=""> to process events instead.

Robert Yeager
http://www.qrowd.com
http://www.cooqy.com

drech
10-09-2008, 10:47 AM
I changed the methods to handlers but still none of the onstart scripting gets executed.

Any other ideas?

Thanks

drech
10-09-2008, 10:57 AM
I moved the handlers to be inside the first animatorgroup and it worked as expected. Kind of thick on my part.

Thanks rcyeager =)