In your result handler, function that is called once the read is
complete, you can access this data as follows:
if ( event.result.record.category == 4 ){
}
else{
}
You can also include XML at compile time using the mx:XML tag,
however, you should not do this if the contents of the XML may change.
--Mike
--- In [email protected], "Fabio Barreiro" <[EMAIL PROTECTED]>
wrote:
>
> Hi guys
>
>
>
> I'm new to Flex...
>
> I've created a HTTPService which reads an XML file and once done calls a
> function
>
> I want this function to perform different actions based on the data
> received. How to do it?
>
>
>
> The xml looks like
>
> <data>
> <record>
> <id>131</id>
> <category>4</category>
> <mat>c2</mat>
> <name>Teste Cyro Neto</name>
> </record>
> </data>
>
>
>
> and for example, I want to execute some code if the category is 4,
and other
> code if it's not 4.
>
>
>
> Any other way not using HTTPService?
>
>
>
> Thanks!!
>
--
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/