You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
827 B

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
backgroundColor="#FFFFFF"
backgroundAlpha="0">
<mx:HTTPService
id="twitterService"
url="http://twitter.com/statuses/public_timeline.xml"
resultFormat="e4x"
result="twitterServiceResultHandler(event)" />
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
private function twitterServiceResultHandler(event:ResultEvent):void {
resultTxt.text = event.result.toString();
}
]]>
</mx:Script>
<mx:Button id="myButton"
label="Send HTTP Request"
click="twitterService.send()" />
<mx:TextArea id="resultTxt"
fontSize="12"
width="100%" height="100%" />
</mx:Application>