Err, how is that supposed to work? The "relative", "duration" or "motion" attributes may be different, this makes using a single animator a bit difficult. Consider this simple test, currently it creates a bounce effect because the motion attribute is different for the two animations. If both animations were mixed into a single animator, the red view wouldn't move at all (because "foo.x - 100 + 100 = foo.x").

<view id="foo" x="100" width="100" height="100" bgcolor="red" />
<method name="testAnimation">
    foo.animate('x', -100, 1000, true, {motion: 'easein'});
    foo.animate('x', +100, 1000, true, {motion: 'easeout'});
</method>


It would it be more efficient to have a single animator per attribute
and reuse that...  Is there an advantage to having multiple simultaneous
animators running at the same time, vs. setting the 'to' attribute on an
existing animator?

--
Regards,
Max Carlson
OpenLaszlo.org

Reply via email to