Flash: Import your WordPress blog into Flash
I have recently discovered a great script for importing your wordpress blogs into flash using AMFphp and a little script created by Dale Sattler at noponies. Basically you set up an AMFphp service on your site and upload the scripts with your login details included then use something similar to the following to access the content:
// AMFphpPath
var AMFphpPath:String = “yourAMFphpPath.php”;
// connect to the gateway
gw.connect(AMFphpPath);
// set up responder class
var res:Responder = new Responder(onResult);
// get results
function onResult(responds:Object):void {
trace(responds[0].post_content);
}
gw.call(“FlashPressService.getPostOrPageByName”, res, “pageName”);
Just change the AMFphpPath to your gateway and replace getPostOrPageByName with the function you want to use from the script and replace pageName with the paramaters to pass to the function. There are loads of different functions that you can access including getting posts via category, get posts by ID get comments etc.
Download the code here: flashpress-src
For further information visit: noponies
Categories: ACTIONSCRIPT 3, AS3, FLASH, FREELANCE, PHP, WORDPRESS
Tags: ACTIONSCRIPT 3, AS3, FLASH, FREELANCE, PHP, WORDPRESS
Comments: No Comments.