Hello all,

I have built this class from a working view:

*************************************
        <class name="moving_image" extends="view">

                <attribute name="aspect_ratio"
                   value="${this.unstretchedheight/this.unstretchedwidth}"/>

                <attribute name="x"
                   value="$once{(image_menu.width-this.width)/2}"/>
                 
                <attribute name="width"
                   value="100"/>
                   
                <attribute name="height"
                   value="$always{aspect_ratio * this.width}"/>
            
            <attribute name="stretches"
                                   value="both"/>
                                   
                        <attribute name="onclick"
                                   value="main_mover.doStart()"/>
                   
                <animatorgroup name="main_mover" start="false">
                        <animatorgroup name="xy_mover" process="sequential" 
duration="500">
                        <animator attribute="x" to="${canvas.width - 
this.width}"/>
                        <animator attribute="y" to="${canvas.height - 
this.height}"/>
                        </animatorgroup>
                        <animatorgroup name="xystretch_mover" 
process="simultaneous" 
duration="500">
                                <animator attribute="width" 
to="${this.unstretchedwidth}" 
duration="250"/>
                                <animator attribute="x" to="${canvas.width - 
this.unstretchedwidth}" duration="250"/>
                                <animator attribute="y" to="${canvas.height - 
this.unstretchedheight}" duration="250"/>
                        </animatorgroup>
                </animatorgroup>                
    </class>
**********************************

The problem seems to be that in the animatorgroups/animators width, height, 
and unstretchedwidth are all undefined while in the attributes they are seen 
properly. I really can't see what I'm doing wrong and this exact syntax works 
as a standalone view.

Any thoughts?

Many thanks,
Matt

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

Reply via email to