What I do is get the url the flex app was loaded from with application.url, parse out the protocol, serverName and port with URLUtil, build the gateway url from these and then set the RemoteObject endpoints to this value.
It seems like kind of a kludge but I haven't found anything cleaner. --- In flexcoders@yahoogroups.com, "[p e r c e p t i c o n]" <[EMAIL PROTECTED]> wrote: > > Hi All, > I need some help understanding how to deploy a project on my production > server...when i created the project i specified a url of > http://localhost:XXXX > and when i deploy the project on my app server...it and call a method using > remote object it can't make the connection...can anyone shed some light on > the process... > p >