Skip to content

Instantly share code, notes, and snippets.

@shimarin
Created January 27, 2009 03:28
Show Gist options
  • Select an option

  • Save shimarin/53152 to your computer and use it in GitHub Desktop.

Select an option

Save shimarin/53152 to your computer and use it in GitHub Desktop.
<mx:Application>
<mx:initialize>
<![CDATA[
if (Application.application.url.indexOf("file://") == 0) {
baseURL = "http://localhost:8080/";
}
]]>
</mx:initialize>
<mx:String id="baseURL"><![CDATA[https://{server.name}/]]></mx:String>
<mx:RemoteObject id="svc" destination="myDestination" endpoint="{baseURL}messagebroker/amf"/>
</mx:Application>
<mx:OtherComponent>
<mx:Script>
<![CDATA[
private var service:Service = Application.application.svc;
]]>
</mx:Script>
</mx:OtherComponent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment