You might put something like the following code in a preinitialize event handler:
const reUrl:RegExp = /(http|https):\/\/(([^:]+)(:([...@]+))?@)?([^:\/]+)(:([0-9]{2,5}))?(\/([\w#!:.?+=&%...@!\-\/]+))?/; const appUrl:String = Application.application.url; const parts:Array = reUrl.exec(appUrl); if (!parts) throw new Error("Invalid URL: " + appUrl); if (parts[1] == "http" ) { const channels:XMLList = ServerConfig.xml..channels.channel; for (var channel:String in channels) { if (channels[channe...@type=="mx.messaging.channels.SecureAMFChannel") { channels[channe...@type="mx.messaging.channels.AMFChannel"; } } } This will, on the preinitialize event, grab the url the app is being called from, parse it with a regular expression, check to see if it's being called from http rather than https, and modify the channels accordingly to operate on a regular AMFChannel instead of a SecureAMFChannel. Nick Collins On Thu, Sep 10, 2009 at 4:27 PM, Wesley Acheson <wesley.ache...@gmail.com>wrote: > > > Does anyone else know where I can ask or point me somewhere I might find > more information? > > Regards, > > Wesley Acheson > > > On Wed, Sep 9, 2009 at 5:28 PM, Wesley Acheson > <wesley.ache...@gmail.com>wrote: > >> Hi all, >> >> We are nearing the end of a development cycle. One thing that I just >> noticed is that my application is talking over http instead of https when >> the application is loaded from a https domain. >> >> In live we will not have any http element of the domain active, only >> https. However locally there is no https component. Is there any way of >> loading off a secure channel when the flash file was loaded via https and a >> non secure channel otherwise? >> >> Otherwise I'm going to have to change all the channels to secure for >> deployment, and no longer run the application locally. >> >> Regards, >> Wesley Acheson >> > > >