"Component" creates its own scope.  Use "outerDocument" to reference the
parent scope.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jason B
Sent: Tuesday, April 22, 2008 9:12 AM
To: [email protected]
Subject: [flexcoders] onclick call not able to access parent doc

 

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>

 

Reply via email to