You could comment out the default in flex-config.xml and provide it via the
flashvars param in the HTML OBJECT PARAMs, but another way might be to reset
the connection to a new URL after the service is created (but before any
methods are invoked).
<mx:RemoteObject id="myRO" ... />
<mx:Script>
function changeURL(url:String)
{
myRO.connection.connect(url);
}
</mx:Script>
-----Original Message-----
From: Battershall, Jeff [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 4:38 PM
To: [email protected]
Subject: [flexcoders] Remote Object Tag > flashservices/gateway
OK, is there ANY way to stipulate the endpoint of a Remote Object at
runtime????????? My attempts to set this value programmatically are failing.
I'd rather not have to HARDCODE this value within my Flex app, which means
that I must alter my source code for each deployment.
Maybe I'm missing something, but so far, no dice.
Jeff Battershall
Application Development Consultant
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)
Yahoo! Groups Links