I have a large (700kb) Flex.swf file representing the main site file.
For performance testing, I wanted to try and move it to Amazon S3 hosting (which I already did with certain videos and large files).
I went ahead and did it, and updated the html page to link to the remote .swf.
It turns out that Flash will load any resources relative to the .swf file, accessing the resource - no matter what the root of the html page is. So, my resources are now downloaded from a remote site (where they do not exist).
There are two obvious things that I could do: * copy all my resources remotely (not ready for this, as I'm just testing now) * add some abstraction to some URL address that .swf is accessing in some layer to get new way.
I really want to flip the switch and say: "Download everything regarding [the source server]."
Is there such a thing or am I downloading every download from a remote machine if I do not fully qualify each path?
I want to avoid something of a βhackedβ type: subclass Image and hack the way there
Simon source share