I have a client that uses a large number of content servers. They want the ability to specify the location (at runtime) of any asset needed by the application. They have requested that this extends to RSLs. Theoretically I need to be able to pass the location of the Framework RSL and any other RSLs into the app swf at runtime.
Just to clarify, these will be RSLs known at compile time and specified in compilation. The only thing that I would need to change would be their locations.
RSLs are required to get the app off the ground. Not much code runs beforehand so you'd have to specify it in flashvars or URL params which seem wasteful. You can use relative paths to get some flexibility. I wouldn't want to support too much flexibility in where to find the RSLs, especially if not signed as version mis-match would cause problems.
But if you really need to do this, I'd subclass Application and SystemManager and have the Application subclass use the SM subclass as its loader. In the SM subclass, on the INIT event, you could go look at the undocumented info() structure and modify the RSL URLs. At least in theory.
Flex SDK Developer
Adobe Systems Inc.
I feared as much. Thanks though.
That Frame link is bad btw.