Hi Lindsay

I used to get this issue with loadVariables and LoadVars.. When you publish the movie 
Flash is
trying to load stuff from the local file system and shits itself.. because the script 
is treated as
a text/plain file in that context.
I stick the absolute path to the file on my local dev server and it works.

Not sure how this affects the xml file as that isn't parsed on a server... maybe 
though you have to
force Flash to load it via a http:// url for it to work properly?

The other thing is to replace spaces (%20) with _ and see if that works.. spaces can 
cause trouble
sometimes..

Cheers

James Ellis
www.webqs.com
---
WSG - http://webstandardsgroup.org | Web Standards Group
syd::php - http://sydney.ug.php.net | Sydney PHP Developers
---
#300 - http://www.sitepoint.com/articlelist/300
---

---------- Original Message -----------
From: "Lindsay Evans" <[EMAIL PROTECTED]>
To: "Flash Developers List" <[EMAIL PROTECTED]>
Sent: Fri, 26 Sep 2003 14:54:04 +1000
Subject: [fugli] FMX2004 & XML.load()

> Has anyone had any problems with XML.load() in 2004?
> 
> I have the following (publishing in V6 with AS1):
> var oXMLData = new XML();
> oXMLData.load('config.xml');
> 
> Which gives me this error:
> Error opening URL
> "file:///P|/685%20YHA%20Itinerary%20Planner/04%20Interface%20Dev/Flash/Itine
> rary%20Planner%20Application/0?"
> 
> Where the '0?' is where the file should be (and yes, the file does exist :p)
> 
> I've tried assigning the filename to a variable & using that, using a
> different filename, using double quotes around the filename, changing the
> oXMLData to a different name - nothing seems to work.
> 
> I'd be forever grateful for any ideas (I'd be slightly less grateful for
> anyone pointing out anything stupid I've done, but grateful nonetheless :).
> 
> --
>  Lindsay Evans.
>  Developer,
>  Red Square Productions.
> 
>  [p] 8596.4000
>  [f] 8596.4001
>  [w] www.redsquare.com.au
> 
> ---
> You are currently subscribed to fugli as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 
> MX Downunder AsiaPac DevCon - http://mxdu.com/
------- End of Original Message -------


---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to