Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Domain security 1

Status
Not open for further replies.

JRBeltman

IS-IT--Management
Feb 5, 2004
290
NL
Hi there,
I am running into an issue where my flash isn't loading my xlm file.

Let me outline the directory structure:

So, when I call the movie.html page the movie plays but fails to read the xlm file that is in a sub folder.

I tried
System.security.allowDomain("
System.security.loadPolicyFile("
With the crossdomain.xml file like:
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

But those two actually don't make sense anyway, cause I am on the same domain.

I have run the movie.swf file itself in its sub folder and that works fine.

Can anyone figure this one out???

JR (IT = Logic (except for a well known OS where it equals luck) -> Back to the Basics!
 
This is not a domain security issue. When you embed a SWF in a HTML, paths to external files become relative to the HTML, not relative to the SWF.

You can either add "base" parameter to <object>/<embed> tags, or add a script to work out the absolute path to external files.

Details are in these threads: thread250-1312350 thread250-1312368

Kenneth Kawamoto
 
Not only does such great help deserve a *, but also an extra compliment! Thanks a million!

I have been struggeling with this issue for a week now, not helped by the fact that I am using wordpress.

I also noticed yesterday that indeed this is not a domain security issue, but that it simply couldn't find the xml file. So, as you can guess I have been banging my head against the wall trying to find a solution.. Never did it occur to me to actually find that solution within flash :)

Thanks Again!!

JR (IT = Logic (except for a well known OS where it equals luck) -> Back to the Basics!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top