5 Replies Latest reply on Dec 19, 2006 5:00 PM by Benelf

    How to add dynamic click event to LinkButton

    Benelf
      I write some code to add dynamic click method to LinkButton. But it won't work. When I replace it with const string, it can work correctly. How can I solve it?
      part of my code:
      <mx:Repeater id="rptDiaryList" dataProvider="{dtDiaryList}">
      <mx:VBox width="100%">
      <mx:LinkButton click="{Alert.show( rptDiaryList.currentItem.Title)}" label="{rptDiaryList.currentItem.Title}" fontFamily="宋体" fontSize="15" width="100%"/>
      <mx:HRule width="100%"/>
      </mx:VBox>
      </mx:Repeater>