имеем:

Код:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="PhoneRequest.send()">
<mx:HTTPService id="PhoneRequest" url="http://www.snut.ru/projects/phone/phones.xml" useProxy="false" />
<mx:Panel width="460" height="357.26086" layout="absolute" title="Phones" fontFamily="Verdana" fontSize="10" cornerRadius="10" x="10" y="10" verticalAlign="middle" horizontalAlign="center">
<mx:DataGrid x="20" y="20" id="Phones" width="400" dataProvider="{PhoneRequest.lastResult.telephoneDirectory.phoneCount}" borderStyle="inset">
<mx:columns>
<mx:DataGridColumn headerText="Name" dataField="name" width="150"/>
<mx:DataGridColumn headerText="Phone" dataField="phone" width="150"/>
<mx:DataGridColumn headerText="Mail" dataField="mail" width="150"/>
</mx:columns>
</mx:DataGrid>
<mx:Label x="93" y="182" text="Name:"/>
<mx:TextInput x="143" y="180" id="name_inp" width="200" text="{Phones.selectedItem.name}"/>
<mx:Label x="90" y="210" text="Phone:"/>
<mx:TextInput x="143" y="208" width="200" id="phone_inp" text="{Phones.selectedItem.phone}"/>
<mx:Label x="103" y="238" text="Mail:"/>
<mx:TextInput x="143" y="236" width="200" id="mail_inp" text="{Phones.selectedItem.mail}"/>
<mx:Button x="199" y="269" label="Add" click="// непонятно"/>
</mx:Panel>
</mx:Application>
как по клику добавить текст из инпутов в датагрид? Спасибо.