[Laszlo-dev] undefined property problem

Denis Bohm denis at fireflydesign.com
Thu Nov 17 09:36:22 PST 2005


I tried adding this to the class:

        <attribute name="duration" value="5000"/>

But the problem still occurs.  Any other ideas?

P T Withington wrote:
> Perhaps a race condition between the constraint and the class 
> initializer.  What happens if you set the class `duration` value using 
> an attribute tag rather than in the class tag?
>
> On 16 Nov 2005, at 23:18, Denis Bohm wrote:
>
>> 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
>> Laszlo-dev at openlaszlo.org
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
>
>
>
> --No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.13.3/173 - Release Date: 
> 11/16/2005
>
>



More information about the Laszlo-dev mailing list