1 Reply Latest reply on Sep 12, 2010 10:12 PM by UbuntuPenguin

    mx:List

    lalithakumari

      how to identify the item which is clicked in mx:List?

       

      <mx:List id="storyList" width="100%" dataProvider="{this.currentDoc.stories}" click="myLabelFunc(event)" height="100%" variableRowHeight="true" selectable="false" borderStyle="none"

      itemRenderer="com.renderers.StoryRenderer">

      </mx:List>

       

      ---------

      public function myLabelFunc (event:Event):void {

      Alert.show("working finally" + storyList.editedItemPosition);

      Alert.show("working finallyn 1" + storyList.);

       

       

      }

       

      storyList.editedItemPosition ---> this does not give correct value...