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