Skip to content

Instantly share code, notes, and snippets.

@mharju
Created August 25, 2010 11:21
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 mharju/549314 to your computer and use it in GitHub Desktop.
Save mharju/549314 to your computer and use it in GitHub Desktop.
<?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