Skip to content

Instantly share code, notes, and snippets.

@bendalton
Created October 20, 2011 19:32
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 bendalton/1302078 to your computer and use it in GitHub Desktop.
Save bendalton/1302078 to your computer and use it in GitHub Desktop.
HTTPService Example
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations>
<s:HTTPService id="service" url="http://yoururl.com/file/blah" resultFormat="text"/>
</fx:Declarations>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:Label text="Request Result: {service.lastResult}"/>
<s:Button label="Test!" click="service.send()"/>
</s:Application>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment