Aaron,
I don't know your exact architecture, but relative paths should work
here. The path is relative to the URL where your embedded SWF is
loaded from. Thus, if you have a folder on your server with the SWF
file and the xml in it, you should be able to simply load "menu.xml".
The crossdomain.xml is good to understand, but fundamentally your
user is either coming in from the "www.whitehorsemedia.com" or the
"whitehorsemedia.com" domain and not switching during an execution of
your SWF.
AJ Canepa
Runtime Logic
www.runtimelogic.com
On Sep 18, 2006, at 12:50 PM, Aaron Roberson wrote:
Serge,
Thank you for your help. I copied and pasted that code into a new
document named crossdomain.xml and uploaded it to the root of my
server and now it works!
Here is a page on Adobe.com about crossdomain.xml:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213
This is the only legitimate fix for me since my movie is on more than
one page across several directories. Relative paths would not have
worked.
Thanks all,
Aaron
On 9/18/06, Serge Jespers <[EMAIL PROTECTED]> wrote:
Hi Aaron,
Put a crossdomain.xml in the root of the server and it will all work
out...
The file should look like this:
<?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="whitehorsemedia.com" />
<allow-access-from domain="www.whitehorsemedia.com" />
</cross-domain-policy>
Serge
> I have a menu constructed from XML and I am parsing it in Flash to
> create my site navigation. However, I am having a problem
loading the
> xml so that it is parsed and displayed on my website when accessed
> directly (as in http://whitehorsemedia.com) and when accessed using
> www.whitehorsemedia.com (using the preceding www).
>
> Here is the code I am using to load my xml:
> menu_xml.load("http://www.whitehorsemedia.com/inc/navigation/
> menu.xml");
>
> If you go to http://www.whitehorsemedia.com the navigation displays
> fine. But if you go to http:whitehorsemedia.com the navigation does
> not display at all.
>
> If I change the code to:
> menu_xml.load("http://whitehorsemedia.com/inc/navigation/
menu.xml");
>
> I get the opposite effect.
>
> How can I get the navigation to display at both addresses?
>
> Thanks in advance,
> Aaron Roberson
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com