how do i get the onclick to work accessing script at the top of this mxml doc?
<mx:DataGrid x="10" y="40" width="886" height="441"
dataProvider="{referencetable}" >
<mx:columns>
<mx:DataGridColumn headerText="" dataField="col1"
width="10">
<mx:itemRenderer>
<mx:Component>
<mx:HBox>
<mx:Button label="Edit" click="launchreferencetable();"/>
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn headerText="NUMBER"
dataField="col2" width="10"/>
<mx:DataGridColumn headerText="ADVISORY SCREEN"
dataField="col3" width="50"/>
<mx:DataGridColumn headerText="" dataField="col4"
width="10">
<mx:itemRenderer>
<mx:Component>
<mx:HBox>
<mx:Button label="Delete"/>
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>

