Wrox Home  
Search P2P Archive for: Go

  Return to Index  

flash_programming thread: Re: More Flash and XML


Message #1 by "Pallav Nadhani" <pallav@n...> on Tue, 5 Feb 2002 10:19:10
Hia,

While playing a Flash movie in a Web browser, you can load data into the 
movie only from a file that is on a server in the same sub-domain. This 
prevents Flash movies from being able to download information from other 
people's servers. 

So you need to have the file in the same subdomain as yours.

Rgds
Pallav Nadhani

> I'm having a problem using XML in Flash. Everything works fine locally 
> on my own computer. But when I upload it to my server, it doesn't want 
> to read the XML file anymore. It only does this when the XML is at a 
> remote location, though. If the file is in the current directory, it'll 
> work fine. It's just strange that it works locally fine, but not when I 
> upload it.
> 
> I'm declaring the XML in Flash as follows:
> 
> webXML =3D new XML();
> webXML.load("http://p.moreover.com/cgi-local/page?c=3DWeb%20developer%
20n
> ews&o=3Dxml");
> 
> That works fine if I run it from my own computer, but not after I upload 

> it. Now, if I copy the XML file onto the server and declare it like the 
> following, it works fine.
> 
> webXML =3D new XML();
> webXML.load("web.xml");
> 
> I just don't want to have to copy the file over to my server everyday.
> Any ideas what might be wrong? Thanks.
> 
> _____________________________________
> 
> Ryan Gerrard
> "New Media Solutions For A New Millenium"
> ryangerrard@h...
> http://portfolio.mala.bc.ca/rgerrard/
>  (xxx) xxx-xxxx
> _____________________________________
> 
> 

  Return to Index