[thelist] Embedding Remote Flash
Johnson, Christopher (MTO)
Christopher.Johnson at mto.gov.on.ca
Thu Aug 5 08:48:04 CDT 2004
<snip>
And in chasing this up, I've discovered that the problem lies not in
loading the SWF file, but in loading the remote XML that contains the
content. Apparently, while you can embed a movie from anywhere, it can only
read in XML from the domain that the embedding code is hosted on.
Although, slightly confusingly, I can read remote XML when testing the
movie in Flash. Is that different?
Any ideas on how I can get around this one? Ideally, it'll all be self
contained, as the ticker I'm building is intended to be hosted on third
party sites.
</snip>
You must be using Flash MX 2004, as I believe this was changed in that
version. I believe that there is a way to create a security policy that will
allow you to load the xml file.
However, there is another way around this if you have access to a scripting
language. If you have php, asp, cfmx, etc, you can use the scripting
language to get the xml file and then have your script load the xml file
into Flash. This should make flash believe that it is getting the xml file
from your domain.
chris
More information about the thelist
mailing list