We use a subclass of the application that offers the following methods:
public function get channelEndPointURI() : String
{
return this.rootServerURI + ( this.channelEndPointContext ? this.channelEndPointContext : "" ) + this.channelEndPointPathInfo
}
public function get rootServerURI() : String
{
var result : String = ""
if ( this.url && ( this.url.indexOf("file:/") == -1 ) )
{
var uri : URI = new URI( this.url )
result = uri.scheme + "://" + uri.authority + ":" + uri.port
}
else
{
result = this.localServerRootURI
}
return result
}
channelEndPointContext, channelEndPointPathInfo localServerRootURI ( "mycontext" "/messagebroker/amf/" , , Flex Builder, URL file://).
URI localServerRootURI, url, , SWF (, , ).
, :
<SuperApplication ...>
<mx:HTTPService id="myHTTPService" url="{this.channelEndPointURI}"/>
</SuperApplication>
, channelEndPointContext URL- , , .