Вот полностью код:

Код AS3:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="onstart()" layout="absolute" width="685" height="600" cornerRadius="5" backgroundColor="white" alpha="1.0">
<mx:HTTPService
id="service"
result="serviceresult(event)"
fault="servicefault(event)"
method="GET" contentType="application/xml"
useProxy="false">
</mx:HTTPService>
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
private var appKey:String;
private function onstart():void{
appKey="appKey=sdfsdfsdsfsd"
}
private function onclick():void{
service.url="http://dfgdfgdfgdf.ru/api/rest/user.getInfo?"+appKey
service.send()
}
private function servicefault(event:Event):void {
trace('broken service')
}
private function serviceresult(event:Event):void {
text3.text=service.lastResult.restResponse.toXMLString();
}
]]>
</mx:Script>
<mx:Button x="214" y="321" label="Button" click="onclick()"/>
<mx:Text x="342" y="77" text="Text" width="300" height="141" id="text1"/>
</mx:Application>
Так как есть сейчас - не работает