Skip to content

Instantly share code, notes, and snippets.

@vangberg
Created August 23, 2008 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vangberg/6918 to your computer and use it in GitHub Desktop.
Save vangberg/6918 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="iso-8859-1"?>
<guides>
<guide>
<id>1</id>
<name>woo</name>
</guide>
<guide>
<id>2</id>
<name>foobar</name>
</guide>
</guides>
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="guidesXML.send()">
<mx:HTTPService
id="guidesXML"
url="http://localhost:4567/guides/"
result="guideHandler(event)"
resultFormat="e4x" />
<mx:Script>
<![CDATA[
import mx.controls.*;
import mx.rpc.events.ResultEvent;
[Bindable]
private var guides:XMLList;
private function guideHandler(evt:ResultEvent):void
{
guides = evt.result..name;
}
]]>
</mx:Script>
<mx:List width="100%"
dataProvider="{guides}">
</mx:List>
</mx:Application>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment