Hi,
If I do a stop() an <animator> and restart it using doStart(), it works
fine.
If I do the same for <animatorgroup>, the doStart() doesn¹t start the
animation again.
I am attaching 2 lzx code samples one with animator and the other with
animatorgroup.
The version of openlaszlo is 3.4.x and runtime is flash.
I don¹t have a 4.x environment to see if this problem can be reproduced
there.
Help me if I am missing something in the way I invoke animatorgroup.
Srini Raja
<canvas debug="true" width="750" height="470" bgcolor="white">
<class name="myview" x="10" y="20" width="20" height="20" bgcolor="red">
<animatorgroup name="movemv" start="false">
<animator name="movemv" attribute="x" to="730"
duration="10000" start="false"/>
</animatorgroup>
</class>
<myview name="mv"/>
<view name="clickme" width="30" y="200" height="30" bgcolor="black">
<handler name="onclick">
this.parent.mv.setX(10);
this.parent.mv.movemv.doStart();
</handler>
</view>
<view name="clickme1" width="30" x="100" y="200" height="30" bgcolor="black">
<handler name="onclick">
this.parent.mv.movemv.stop();
</handler>
</view>
</canvas>
<canvas debug="true" width="750" height="470" bgcolor="white">
<class name="myview" x="10" y="20" width="20" height="20" bgcolor="red">
<animator name="movemv" attribute="x" to="730"
duration="10000" start="false"/>
</class>
<myview name="mv"/>
<view name="clickme" width="30" y="200" height="30" bgcolor="black">
<handler name="onclick">
this.parent.mv.setX(10);
this.parent.mv.movemv.doStart();
</handler>
</view>
<view name="clickme1" width="30" x="100" y="200" height="30" bgcolor="black">
<handler name="onclick">
this.parent.mv.movemv.stop();
</handler>
</view>
</canvas>