If the XML file isn't gzipped, I'm not sure what that would return. Are you uploading that PHP file to your server and doing something like:
lv = new LoadVars(); lv.owner = this; lv.filepath = "http://anniegroovie.blogspot.com/atom.xml"; lv.onData= function(str) { this.owner.parseTheXML(str); }; lv.sendAndLoad("yourserver.com/the.php", lv, "POST"); funciton parseTheXML(str) { var xml = new XML(); xml.parseXML(str); trace(xml); } ----- Original Message ----- From: "Patrick Matte" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> Sent: Sunday, November 13, 2005 11:08 PM Subject: Re: [Flashcoders] blogger with flash I tried that bit of php code but couldn't resolved anything. The Loadvars returns "the XML=&onLoad=%5Btype%20Function%5D " ----- Original Message ----- From: "JesterXL" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> Sent: Sunday, November 13, 2005 10:43 PM Subject: Re: [Flashcoders] blogger with flash > Nope, this is part of the security sandbox since Flash 5. You will need > either: > - the swf to reside on anniegroove.blogspot.com > - a shim.swf to reside on the above domain that merely says > "System.allowDomain("*");" > - a crossdomain.xml file to reside on the above domain that allows your > site > - a proxy > > The most common solution is a proxy since it only requires very little > code, > and can reside on your site. Basically, PHP/ASP/ColdFusion, whatever, > loads > the XML file from the other domain, and passes it to Flash. Here's how I > not only grab an XML file, but uncompress it for Flash: > > <?php > > $file = gzfile($HTTP_POST_VARS["filename"]); > > echo "theXML=" . implode("", $file); > ?> > > My swf just does a LoadVars.sendandLoad to that PHP file, with a filename > variable, and it returns the XML as a string, which I then just toss to an > XML object. > > ----- Original Message ----- > From: "Patrick Matte" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> > Sent: Sunday, November 13, 2005 10:35 PM > Subject: Re: [Flashcoders] blogger with flash > > > No my swf is on another server! But i thought flash could read files from > other servers. > > ----- Original Message ----- > From: "JesterXL" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> > Sent: Sunday, November 13, 2005 10:31 PM > Subject: Re: [Flashcoders] blogger with flash > > >> Is your .swf on anniegroovie.blogspot.com? >> >> ----- Original Message ----- >> From: "Patrick Matte" <[EMAIL PROTECTED]> >> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> >> Sent: Sunday, November 13, 2005 10:30 PM >> Subject: [Flashcoders] blogger with flash >> >> >> Hi, i have made a flash 7 blog that uses blogger's xml output. It works >> perfectly when i test locally. But when i access the file from website, >> the >> xml object never returns success... Maybe its a cross-domain problem with >> flash ? >> >> The xml comes form http://anniegroovie.blogspot.com/atom.xml >> >> Anyone knows what the problem could be ? >> _______________________________________________ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> _______________________________________________ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders