views:

17

answers:

0

hai i am creating an AIR application to display records from MySql database using pHp

Here i am using AIR http service

<mx:HTTPService id="userdisplay" url="http://localhost/Myproject/index.php"
    useProxy="false" method="POST" resultFormat="object">
</mx:HTTPService>

I am getting record in XML formal and able to display in a datagrid

<mx:DataGrid id="dgUserRequest" x="22" y="128" dataProvider="{userdisplay.lastResult.users.user}">
    <mx:columns>
            <mx:DataGridColumn headerText="User ID" dataField="username"/>
            <mx:DataGridColumn headerText="User Name" dataField="password"/>
    </mx:columns>
</mx:DataGrid>

But i want to split the XML and display each field in LABEL....

Plz help me..

thanx