Topic: Trouble embedding in SWF from different folder
Tons of frustration right now, a few words of wisdom will be greatly appreciated.
I'm using SimpleViewer in conjunction with SVManager to create a flash website that will have four separate picture galleries, all easily editable by the end user (by logging into the svmanager to add/remove pictures, etc).
I can get one gallery embedded without a problem by putting the root SWF directly in the same folder with viewer.swf and gallery.xml (so, in the folder that also contains the images and thumbs folders). Formats perfectly, shows my pictures, awesome. But, I need to be able to call four different galleries from the root SWF, and this is what starts the trouble.
I've put my index SWF one folder up the tree from my viewer and gallery, so the structure looks like this:
I'm still trying to do just the one gallery this way to get it functional before fussing with the other three. Now, the SWF is calling viewer.swf with no problem, and it is formatted correctly, so I'm getting gallery.xml too, but all of my pictures are blank. Just an empty frame where each picture should be.
I thought this must be a security problem, so I tried placing a custom crossdomain.xml... well, just about everywhere I could think to put it, the images and galleries folders, the folder that contains my swf, the root folder of my site... it didn't help. So, I tried calling it up through the SWF like this:
The code of the XML is:
<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy><allow-access-from domain="*" secure="false" /> </cross-domain-policy>
Still no dice.
I am embarrassed to even think about how much time I've spent beating my head on this wall. I can't even say how grateful I'll be if someone could bail me out. Someone save me!