Re: [Flashcoders] Help Loading and Displaying XML

2006-09-19 Thread AJ Canepa
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

[Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread Aaron Roberson
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

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread Serge Jespers
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

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread l u c h y x
Why don't use relative paths ?. 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/

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread Claus Wahlers
Aaron Roberson wrote: 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

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread Aaron Roberson
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

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread l u c h y x
Your movie should receive or load a URLparameter such as: mymenu.swf?xml_config_path=?php echo $_SERVER['host']./menudp.xml;? And you don't need to hard-code the uri in the SWF anymore. On 9/18/06, Aaron Roberson [EMAIL PROTECTED] wrote: Serge, Thank you for your help. I copied and pasted

Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread Aaron Roberson
Luchyx, Thanks for the suggestion, I am going to pass in the url using flash vars as you have suggested. -Aaron On 9/18/06, l u c h y x [EMAIL PROTECTED] wrote: Your movie should receive or load a URLparameter such as: mymenu.swf?xml_config_path=?php echo $_SERVER['host']./menudp.xml;? And