[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
Re: [Flashcoders] blogger with flash
Is your .swf on anniegroovie.blogspot.com? - Original Message - From: "Patrick Matte" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" 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
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" 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" 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
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: 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" 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" 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" > 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
Re: [Flashcoders] blogger with flash
Thanks, that sounds good ! I'll try this right away ! - Original Message - From: "JesterXL" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" 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: 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" 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" 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" 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
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" 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: 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" 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" 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" 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
Re: [Flashcoders] blogger with flash
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" 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" 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: > > > $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" > 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" > 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" >> 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
Re: [Flashcoders] blogger with flash
Do i have to change anything to that bit of php code ? In flash - Original Message - From: "JesterXL" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Sunday, November 13, 2005 11:24 PM Subject: Re: [Flashcoders] blogger with flash 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" 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" 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: 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" 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" 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" 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] blogger with flash
why LoadVars? Just do a XML load of a proxy file which will in turn return your XML? http://www.ericd.net/weather_tutorial/security.html Thats the flavor of proxy that I like to use. On 11/13/05, JesterXL <[EMAIL PROTECTED]> wrote: > 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" > 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" > 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: > > > > > > > $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" > > 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" > > 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" > >> 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 > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] blogger with flash
You don't have to; my PHP was setup to load from a filename, a filename variable you had to pass to Flash. If he hardcodes the filename in the PHP, he doesn't have to. - Original Message - From: "eric dolecki" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Sunday, November 13, 2005 11:47 PM Subject: Re: [Flashcoders] blogger with flash why LoadVars? Just do a XML load of a proxy file which will in turn return your XML? http://www.ericd.net/weather_tutorial/security.html Thats the flavor of proxy that I like to use. On 11/13/05, JesterXL <[EMAIL PROTECTED]> wrote: > 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" > 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" > 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: > > > > > > > $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" > > 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" > > 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" > >> 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 >
Re: [Flashcoders] blogger with flash
this is awesome thanks ! - Original Message - From: "eric dolecki" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Sunday, November 13, 2005 11:47 PM Subject: Re: [Flashcoders] blogger with flash why LoadVars? Just do a XML load of a proxy file which will in turn return your XML? http://www.ericd.net/weather_tutorial/security.html Thats the flavor of proxy that I like to use. On 11/13/05, JesterXL <[EMAIL PROTECTED]> wrote: 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" 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" 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: > > > $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" > 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" > 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" >> 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 ___ 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
RE: [Flashcoders] blogger with flash
Patrick, are you going to be releasing a tutorial on how you did this or maybe the source code? Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: Sunday, November 13, 2005 11:20 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] blogger with flash this is awesome thanks ! - Original Message - From: "eric dolecki" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Sunday, November 13, 2005 11:47 PM Subject: Re: [Flashcoders] blogger with flash why LoadVars? Just do a XML load of a proxy file which will in turn return your XML? http://www.ericd.net/weather_tutorial/security.html Thats the flavor of proxy that I like to use. On 11/13/05, JesterXL <[EMAIL PROTECTED]> wrote: > 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" > 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" > 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: > > > > > > > $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" > > 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" > > 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" > >> 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 ? > >> ___
Re: [Flashcoders] blogger with flash
Here is an example of posting to WordPress via XMLRPC. Blogger supports the same API but they say they gave up on XMLRPC http://xmlrpcflash.mattism.com/wordpress/ Here is the proxy it uses: http://xmlrpcflash.mattism.com/proxy_info.php On 11/14/05, Corban Baxter <[EMAIL PROTECTED]> wrote: > > Patrick, are you going to be releasing a tutorial on how you did this or > maybe the source code? > > Corban Baxter |rich media designer |www.funimation.com > > > -Original Message- > From: [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] On Behalf Of Patrick Matte > Sent: Sunday, November 13, 2005 11:20 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] blogger with flash > > this is awesome thanks ! > > - Original Message - > From: "eric dolecki" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" > Sent: Sunday, November 13, 2005 11:47 PM > Subject: Re: [Flashcoders] blogger with flash > > > why LoadVars? Just do a XML load of a proxy file which will in turn > return your XML? > > http://www.ericd.net/weather_tutorial/security.html > Thats the flavor of proxy that I like to use. > > > > On 11/13/05, JesterXL <[EMAIL PROTECTED]> wrote: > > 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" > > 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" > > 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: > > > > > > > > > > > $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" > > > 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" > > > Sent: Sunday, November 13, 2005 10:31 PM > > > Subject: Re: [Flashcoders] blogger with flash > > > > > > > > >> Is your .swf on anniegroovie.blogspot.com