Home > Personal Projects > Chugging along on Fless, the WordPress Flash front-end

Chugging along on Fless, the WordPress Flash front-end

March 28th, 2008

I’ve spent a day or two reformatting and tightening up the code I left lingering on the Fless project I started.

Here is the example

It doesn’t look like much but it shows the ease of use of the framework.

Here is the code to create the basics:

public class Main extends MovieClip{

public function Main(){

var blog:Fless = new Fless();

blog.phpURL = “http://yourwebsite/getPost.php”;

blog.addEventListener(PostEvent.UPDATE, postsReady);
blog.getPosts(0, 20);

}

private function postsReady(e:PostEvent):void{
trace(“posts ready”);
trace(e.posts);

var curPost:CurrentPostView = new CurrentPostView(e.posts[0]);
curPost.x = 50;
curPost.y = 50;
curPost.width = (stage.stageWidth / 2) – 50;
curPost.height = stage.stageHeight – 100;
addChild(curPost);
}

}

I’m definitely looking for input from Flash devs that use WordPress to see what kind of features they would like.

Julian Personal Projects , ,

  1. January 9th, 2009 at 21:39 | #1

    What is your protocol for getting content from php? http headers, amf?

  2. Julian
    January 10th, 2009 at 16:22 | #2

    The PHP gets into the WordPress DB and spits out XML which I read in the Flash

    It looks broken right now because i haven’t modified it to account for HTML in posts.

  3. February 15th, 2009 at 21:43 | #3

    if you just using XML then why not just use XML-RPC. Here is a link to a really good XML-RPC AS3 class. Since there is a full API in wordpress all you need is already made. Though if you ask me XML is the slowest way to got about this. AMF is the best protocol hands down for flash. I would look to make something with Zend AMF or AMFPHP. but thats just me. And if I could I would do so my self.

    XML-RPC link.
    http://danielmclaren.net/2007/08/03/xmlrpc-for-actionscript-30-free-library

    I was gonna try to make an AS3 API for wordpress that used AMFPHP, but after I had done so much work they changed alot with 1.2 so I dropped the project. Plus AMFPHP has hit some really hard times because of Wade Arnold.

    Any how Good look, and if you ever feel like it shoot me an email if you need to ask a question. I would be willing to help if you need.

  4. March 28th, 2009 at 20:35 | #4

    I have just developed an AS3 wrapper for the WordPress XML-RPC API if anyone is interested in making flash front-ends for WordPress (and doesn’t have the time to build their own!)
    http://blog.absentdesign.com/?page_id=22

  1. No trackbacks yet.