all groups > macromedia flash sitedesign > may 2006 >
You're in the

macromedia flash sitedesign

group:

XML Issue


XML Issue Firelands_Tech
5/31/2006 4:27:52 PM
macromedia flash sitedesign: I recently created a flash animation for a local restaurant to display the
bands that will be preforming there. I used XML to display the dynamic content
so that it could easily be changed when needed. The animation works fine when
I use flash player, however when I try to embed the flash animation in the
website the XML won't load. Im very confused and would greatly appreciate it.

Thank You in advance,

Adrian
Director of Information Technology
Firelands Winery, Sandusky Ohio
Re: XML Issue DMennenoh **AdobeCommunityExpert**
6/1/2006 1:56:51 PM
Online you need to specify the full path to the xml file, relative paths
don't seem to work with the XML object.

So, if you had something like this locally:

videos.load("myFile.xml");

You want it like this instead:

var myURL = this._url.substr(0, this._url.lastIndexOf("/") + 1);
videos.load(myURL + "myFile.xml");

--
Dave -
Adobe Community Expert
www.blurredistinction.com
http://www.adobe.com/communities/experts/

AddThis Social Bookmark Button