Am I doing something wrong, or is this a bug?

This works:

<canvas debug="true">
        <view name="slideView" bgcolor="red" height="40" width="40"/>
        <class name="SlideAnimator" extends="animator"
                target="slideView" relative="true"
                attribute="x" to="${slideView.width}" duration="500">
                <handler name="onstart">
                        Debug.write("starting slide" + this.target);
                </handler>
                <handler name="onstop">
                        Debug.write("finished slide");
                </handler>
        </class>
        <SlideAnimator/>
</canvas>

This doesn't:

<canvas debug="true">
        <view name="slideView" bgcolor="red" height="40" width="40"/>
        <class name="SlideAnimator" extends="animator"
                target="slideView" relative="true"
                attribute="x" to="${slideView.width}" duration="500">
                <handler name="onstart">
                        Debug.write("starting slide" + this.target);
                </handler>
                <handler name="onstop">
                        Debug.write("finished slide");
                </handler>
        </class>
        <animatorgroup>
                <SlideAnimator/>
        </animatorgroup>
</canvas>

Notice that the only difference between these two examples is that the
second example has the animator wrapped in an animator group.  The
Debug window in the second example shows that the animation starts and
stops instantaneously, resulting in no visual effect.

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

Reply via email to