2 Replies Latest reply on Apr 30, 2010 5:59 AM by yu2009

    Access of undefined property - but ...

    yu2009 Level 1

       

      I used exactly the same source code as http://www.5min.com/Video/How-to-Create-a-Reusable-Embedded-Image-in-Adobe-Flex-Builder-2- 80731718 but got the error below:

       

      1120: Access of undefined property i_about.  (highlighted line)

       

      The code:

       

      <mx:Script>

      <![CDATA[

      [Bindable] [Embed(source="com/esri/solutions/flexviewer/assets/images/icons/i_about2.PNG")]
      public var i_about:Class;

      ]]>

      </mx:Script>

      ---------------

      <mx:DataGridColumn headerText="Fiscal Year" headerWordWrap="true" dataField="FiscalYear" headerStyleName="centered" width="105" />
      <mx:DataGridColumn headerText="Input Status" headerWordWrap="true" dataField="InputStatus" headerStyleName="centered" width="100" >
      <mx:headerRenderer>
      <mx:Component>
      <mx:Image  toolTip="This is a column with an image " source="{i_about}" horizontalAlign="right" width="10%" />
      </mx:Component>
      </mx:headerRenderer>