I'm having this problem with version 3.1.

When I try to run the code below I get the following warnings in the debugger:

WARNING: problem.lzx:6: reference to undefined property 'duration'

I'm trying to figure out how to set a default value for the duration attribute. Does anyone see what's wrong?

<canvas width="600" height="600">

<class name="fade" extends="animatorgroup" process="sequential" duration="5000">
       <attribute name="lead" value="1000" type="number"/>
<animator attribute="opacity" from="0" to="1" motion="easeboth" duration="${parent.lead}"/>
       <animator duration="${parent.duration - 2 * parent.lead}"/>
<animator attribute="opacity" from="1" to="0" motion="easeboth" duration="${parent.lead}"/>
   </class>

   <view>
       <animatorgroup process="sequential">
           <fade target="v1" duration="5000"/>
           <fade target="v2" lead="1000"/>
       </animatorgroup>
       <view id="v1" width="600" height="600" opacity="0" bgcolor="red"/>
       <view id="v2" width="600" height="600" opacity="0" bgcolor="blue"/>
   </view>
</canvas>

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

Reply via email to