You can use the BASE param to point to a default location which is then used in Flash for every relative url. Depending on thz BASE value, relative url's are resolved in different manners:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_04157 regards, Muzak ----- Original Message ----- From: "Thomas Fowler" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> Sent: Wednesday, May 10, 2006 8:59 PM Subject: Re: [Flashcoders] xml file location Ok, that's what I was afraid of. Thanks for the info!! On 5/10/06, Zeh Fernando <[EMAIL PROTECTED]> wrote: > > > If I have a swf that's embedded in an html page that lives on the root > of > > the site, does the xml file the swf is trying to load need to also exist > > in > > the root? I was thinking the path to the xml would be relative to the > > swf's > > location in the directory structure, but I'm thinking this isn't the > case. > > The XML doesn't need *to exist* on the root, but all references are always > relative to the location of the HTML file -- no matter where your SWF is. > > If you use the same SWF on two different HTML files located on different > directories, you might have to use an absolute dir for your xml data (ie, > "/data/whatever.xml") or do some kind of detection (based on _root._url) > to > know what will be the correct XML file address. > > > - Zeh _______________________________________________ Flashcoders@chattyfig.figleaf.com 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