Peter_Chea
08-15-2003, 04:59 PM
Hi, I am getting compiler warning from constrainting other value to the animator "to" or "from" attributes. How can I get rid of the warning.
Registry.lzx:85:81: bad value for attribute "to"
Registry.lzx:86:83: bad value for attribute "to"
Registry.lzx:87:154: bad value for attribute "from"
Registry.lzx:87:154: bad value for attribute "to"
Registry.lzx:88:115: bad value for attribute "from"
Registry.lzx:88:115: bad value for attribute "to"
<class name="RegistryItem" width="240" height="205" clickable="true">
<view name="imageView" x="5" y="5" width="(parent.width / 240.0) * 168"
height="width * 138 /168" datapath="@imageId" stretches="both" align="center">
<method name="applyData" args="imageId">
var image = "images/products/" + imageId + "_t"+".jpg";
debug.write("image: " + image);
this.setSource(image);
</method>
</view>
<view name="bkgnd" y="-10" width="parent.width" height="0" bgcolor="0xC3D7EB"
options="ignorelayout" visible="true" opacity="0.95" oninit="this.sendToBack()" initstage="late">
<animatorgroup name="shrink" duration="500" process="simultaneous" start="false" >
<animator attribute="x" from="0" to="${classroot.imageView.x}"/>
<animator attribute="y" from="-10" to="${classroot.imageView.y}"/>
<animator attribute="height" from="$once{classroot.detailView.y + classroot.detailView.height}" to="$once{classroot.imageView.height}" />
<animator attribute="width" from="$once{classroot.width}" to="$once{classroot.imageView.width}" />
<method event="onstop">
parent.setVisible(false);
</method>
</animatorgroup>
<animatorgroup name="enlarge" duration="500" start="false" process="simultaneous" >
<animator attribute="x" to="0" from="${classroot.imageView.x}"/>
<animator attribute="y" to="-10" from="${classroot.imageView.y}"/>
<animator attribute="height" to="$once{classroot.detailView.y + classroot.detailView.height + 2}" from="$once{classroot.imageView.height}" />
<animator attribute="width" to="$once{classroot.width}" from="$once{classroot.imageView.width}" />
<method event="onstart">
parent.setVisible(true);
</method>
</animatorgroup>
</view>
Registry.lzx:85:81: bad value for attribute "to"
Registry.lzx:86:83: bad value for attribute "to"
Registry.lzx:87:154: bad value for attribute "from"
Registry.lzx:87:154: bad value for attribute "to"
Registry.lzx:88:115: bad value for attribute "from"
Registry.lzx:88:115: bad value for attribute "to"
<class name="RegistryItem" width="240" height="205" clickable="true">
<view name="imageView" x="5" y="5" width="(parent.width / 240.0) * 168"
height="width * 138 /168" datapath="@imageId" stretches="both" align="center">
<method name="applyData" args="imageId">
var image = "images/products/" + imageId + "_t"+".jpg";
debug.write("image: " + image);
this.setSource(image);
</method>
</view>
<view name="bkgnd" y="-10" width="parent.width" height="0" bgcolor="0xC3D7EB"
options="ignorelayout" visible="true" opacity="0.95" oninit="this.sendToBack()" initstage="late">
<animatorgroup name="shrink" duration="500" process="simultaneous" start="false" >
<animator attribute="x" from="0" to="${classroot.imageView.x}"/>
<animator attribute="y" from="-10" to="${classroot.imageView.y}"/>
<animator attribute="height" from="$once{classroot.detailView.y + classroot.detailView.height}" to="$once{classroot.imageView.height}" />
<animator attribute="width" from="$once{classroot.width}" to="$once{classroot.imageView.width}" />
<method event="onstop">
parent.setVisible(false);
</method>
</animatorgroup>
<animatorgroup name="enlarge" duration="500" start="false" process="simultaneous" >
<animator attribute="x" to="0" from="${classroot.imageView.x}"/>
<animator attribute="y" to="-10" from="${classroot.imageView.y}"/>
<animator attribute="height" to="$once{classroot.detailView.y + classroot.detailView.height + 2}" from="$once{classroot.imageView.height}" />
<animator attribute="width" to="$once{classroot.width}" from="$once{classroot.imageView.width}" />
<method event="onstart">
parent.setVisible(true);
</method>
</animatorgroup>
</view>