3 Replies Latest reply on Sep 29, 2006 1:21 PM by ntsiii

    Definition could not be found

    FursterateTom
      I am getting a couple of error when I try to use a component as a itemrender for my tile list. Both of these mxml files are in the same folder.

      I am getting the following errors.

      1120 Access of undefinded property PropertyThumb
      1172 Definition PropertyThumb could not be found.

      <mx:TileList id="propTile" width="100%" height="100%"
      allowMultipleSelection="false"
      dataProvider="{propertyList}"
      itemRenderer="PropertyThumb" direction="vertical">

      </mx:TileList>

      and here is my component PropertyThumb

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml"
      width="298" height="134">

      <mx:CurrencyFormatter id="currencyFormat" precision="2"
      currencySymbol="$" decimalSeparatorFrom="."
      decimalSeparatorTo="." useNegativeSign="true"
      useThousandsSeparator="true" alignSymbol="left"/>

      <mx:Image x="10" y="10" width="121" height="111" source="{data.pictureurl}" scaleContent="true"/>
      <mx:Label x="139" y="56" text="{data.address}"/>
      <mx:Label x="139" y="80" text="{data.city}"/>
      <mx:Label x="139" y="103" text="{data.state}"/>
      <mx:Label x="218" y="103" text="{data.zip}"/>
      <mx:Label x="139" y="10" text="Price:"/>
      <mx:Label x="178" y="10" text="{currencyFormat.format(data.price)}"/>

      </mx:Canvas>


      Thanks,


      Thomas