8 Replies Latest reply on Sep 6, 2007 2:04 AM by Craig Grummitt

    How to get property of custom component

    P Steven
      I have a repeated custom component as follows:

      <mx:Repeater id="productsRepeater" dataProvider="{this.category1}" >

      <local:ComFolderItem mouseOver="CFSMouseOver_Folder(event)" click="CFSClick_Folder(event)" studentName='{productsRepeater.currentItem.productName + "(" + productsRepeater.currentItem.productPrice + ")"}' >

      </local:ComFolderItem>

      </mx:Repeater>

      And I want to retrieve the studentName and productPrice when this component is clicked on

      private function CFSClick_Folder(evt_obj:Object):void {

      var studentName:String = ??????

      }

      Please can anyone tell me how I can get this value?

      Thanks

      Paul