Created
August 25, 2010 11:21
-
-
Save mharju/549314 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="utf-8"?> | |
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="init()"> | |
<mx:Script> | |
<![CDATA[ | |
import mx.rpc.events.FaultEvent; | |
import mx.rpc.events.ResultEvent; | |
private function init() : void | |
{ | |
core.addEventListener(ResultEvent.RESULT, | |
function(e:ResultEvent):void{ trace("Result: "+e.result); }); | |
core.addEventListener(FaultEvent.FAULT, | |
function(f:FaultEvent):void{ trace("Fault: "+f.message); }); | |
core.echo("Hello, world!"); | |
} | |
]]> | |
</mx:Script> | |
<mx:RemoteObject endpoint="http://localhost:8000/" destination="echo" id="core" /> | |
</mx:Application> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment