PDA

View Full Version : Using an Animatorgroup to Control Sequential Animation


antun
12-05-2003, 03:49 PM
You can use an <animatorgroup> to have several animators act on a view in sequence:


<canvas>
<view name="foo" bgcolor="red" width="50" height="50"
clickable="true" onclick="fooAnim.start()">

<animatorgroup name="fooAnim" process="sequential" start="false">
<animator attribute="x" from="0" to="300" duration="750"
relative="false" />
<animator attribute="y" from="0" to="300" duration="750"
relative="true" />
<animator attribute="x" to="-300" duration="750"
relative="true" />
<animator attribute="y" to="-300" duration="750"
relative="true" />
</animatorgroup>
</view>
</canvas>


Enjoy!

dheon09
10-17-2005, 10:08 PM
Hi Antun,

I've been using this animatorgroup for our sample prototype it really works for me. My Question is that can i use a specific animatorgroup for different class or view?