You can read all this in from an xml file. You essentially have to set everything yourself in the remoting objects; you end up using endpoint instead of destination. It;s kinda ugly, but I haven't come up w/a better way yet. (Personally, I think it was a mistake to have client-side code reading values out of the compilation environment (flex-services.xml) that are later used at runtime. If anyone has come up w/a better approach, I'd love to hear about it.)
On Mon, Feb 23, 2009 at 3:15 PM, Dale Bronk <[email protected]> wrote: > One more piece of information. We really don't want to have separate > compiles and we realize we can modify the xml at deployment time, but we are > hoping for a more automated way. > > > > Dale > > > > From: [email protected] [mailto:[email protected]] On Behalf Of Dale Bronk > Sent: Monday, February 23, 2009 2:14 PM > To: [email protected] > Subject: [AFFUG Discuss] Dynamically changing amf channel at runtime > > > > Any advice on how to dynamically changing our amf channel at runtime? What > we want is to have our app use HTTP (non SSL) when we run on our developer > boxes, and some of our QA environments. But when we run in our System Test > or production we want to set it to use secure channel (HTTPS). > > > > What we were thinking was in our Application we read to see if we were > gotten to via HTTP or HTTPS and set the channel dynamically. > > > > Thanks, > > Dale > > ------------------------------------------------------------- > To unsubscribe from this list, simply email the list with unsubscribe in the > subject line > > For more info, see http://www.affug.com > Archive @ http://www.mail-archive.com/discussion%40affug.com/ > List hosted by FusionLink > ------------------------------------------------------------- > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.237 / Virus Database: 270.11.1/1960 - Release Date: 02/23/09 > 07:17:00 > > ------------------------------------------------------------- > To unsubscribe from this list, simply email the list with unsubscribe in the > subject line > > For more info, see http://www.affug.com > Archive @ http://www.mail-archive.com/discussion%40affug.com/ > List hosted by FusionLink > ------------------------------------------------------------- -- Scott Talsma CTO, echoEleven ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
