Créer une animation séquentielle avec OpenLaszlo
Vous pouvez utiliser <animatorgroup> pour créer des animations séquentielles.
<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>
Un click sur le carré rouge!!!
Ressource en anglais sur le forum OpenLaszlo ici