Here's something you can try:
Instead of this...
>requestSolicitante.lastResult.solicitante.nome;
Try this...
private function onResult(oEvent:ResultEvent):void
{
var r:XML = XML(oEvent.result);
txSolicitante.text = r.solicitante.nome;
}
--- In [email protected], "falecomozig" <[EMAIL PROTECTED]> wrote:
>
> Hi fellows.
>
> I have a test application where I send two variables to the server, I
> get the two as POST vars and make a search in the db. As a result, I
> have an agent sending this XML:
>
> <?xml version="1.0"?>
> <root>
> <solicitante>
> <nome>AAA</nome>
> <ramal>1111</ramal>
> <departamento>BBB</departamento>
> <secao>CCC</secao>
> <email>HHH</email>
> </solicitante>
> </root>
>
> I´m trying to put some of theresults into textInputs with this:
>
> private function onResult(oEvent:ResultEvent):void
> {
> txSolicitante.text =
> requestSolicitante.lastResult.solicitante.nome;
> }
>
> Well, it´s not working.
> How can I do this???
>
> Thanks
>
> Zig
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/