I'm confused about the 'motion' attribute on 'animatorgroup' and 'animator'. The attribute 'motion' is listed on the 'animatorgroup', but the method 'setMotion' is listed on 'animator'. Why is that?

Also, I was hoping that the 'motion' defined on an 'animatorgroup' would be inherited by it's children - but from testing that doesn't seem to be the case. Is there some rationale for that?

Finally, when I try to use the parents 'motion' attribute value the compiler generates a warning of a bad value, but at runtime it seems to work. Any idea why that might be?

Here is my code:

<canvas width="640" height="320">

   <class name="pan" extends="animatorgroup" process="simultaneous">
<animator attribute="x" from="0" to="100" motion="${parent.motion}"/> <animator attribute="y" from="0" to="100" motion="${parent.motion}"/>
   </class>

   <view width="${canvas.width}" height="${canvas.height}">

       <view name="graphic" width="100" height="100" bgcolor="red"/>

       <pan target="${parent.graphic}" duration="2000" motion="linear"/>

   </view>

</canvas>
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to