Created
August 23, 2008 13:58
-
-
Save vangberg/6918 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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