<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" viewSourceURL="srcview/index.html"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var fileList : ArrayCollection = new ArrayCollection([ {id: 1, file: "test.doc", location:"http://www.jeffryhouser.com"}, {id: 1, file: "test.pdf", location:"http://www.google.com"}, {id: 1, file: "test2.doc", location:"http://www.yahoo.com"} ]); ]]> </mx:Script> <mx:DataGrid dataProvider="{fileList}"> <mx:columns> <mx:DataGridColumn dataField="location" headerText="File"> <mx:itemRenderer> <mx:Component> <mx:LinkButton click="handleClick()" label="{data.file}" > <mx:Script> <![CDATA[ public function handleClick():void{ var url:URLRequest = new URLRequest(data.location); navigateToURL(url,"_blank"); } ]]> </mx:Script> </mx:LinkButton> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> </mx:columns> </mx:DataGrid> </mx:Application>