Popa Mihai

PopaMihai.com – Flex, Flash, AIR and ActionScript articles and tutorials

Archive for the ‘HTTPService’ tag

Working with E4X – XML in Flex – Part 4 – Comments and Special Characters

leave a comment

You can add comments in your XML documents. As long as the comment in not interfering with the structure of the XML, you can add it everywhere in the XML. This means that after the comment is entered in the XML the document will still be well formatted.

<!-- This is how a XML comment looks -->

Read the rest of this entry »

Written by Popa Mihai

August 13th, 2009 at 4:21 pm

Posted in Flex

Tagged with , ,

Working with E4X – XML in Flex – Part 1 – Loading XML with HTTPService

one comment

One of the most popular and easy to use methods of loading XML data in Flex is by using the HTTPService class.

Here is how you declare a HTTPService tag in mxml:

	<mx:httpservice id="xmlRequestService" 
		url="xmldFile.xml"
		result="xmlRequestServiceResultHandler(event)"
		resultFormat="e4x"
		fault="xmlRequestServiceFault(event)"></mx:httpservice>

Read the rest of this entry »

Written by Popa Mihai

August 13th, 2009 at 12:18 pm

Posted in Flex

Tagged with , ,