I have an existing set of games/interactive swfs that I want
to use in an upcoming AIR app. I plan to create a "Shell"
application that can load/play the existing swf content. A lot of
these existing swfs make requests for external content (XML config
files, images etc), and may do so using relative URLS.
My question is, am I able to somehow use the Shell
application as a proxy, such that any requests from the loaded swf
go through the Shell, adding a domain prefix if neccessary (sort of
like setting a
base href tag in HTML).
An example might be:
GameA.swf is compiled and ready go. At run time, it loads "
I want my AIR Shell, which loads GameA.swf to 'catch' the
request and append "
www.mydomain.com" to the URL, such that GameA.swf is now
AFAIK, there is no way to catch URL requests from a swf that
the parent swf loaded. However, why don't you have an API that
passes the URL to the parent SWF and it can do the transformation
and then make the URL request?