Call JavaScript when double clicked the List item
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal">
<mx:Script>
private function onDoubleClick( event:Event ) : void {
ExternalInterface.call('itemSelected', theList.selectedItem );
}
</mx:Script>
<mx:List id="theList" width="300" doubleClick="onDoubleClick(event);" doubleClickEnabled="true">
<mx:dataProvider>
<mx:Array>
<mx:String>A</mx:String>
<mx:String>B</mx:String>
<mx:String>C</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:List>
</mx:Application>
Related examples in the same category