Chugging along on Fless, the WordPress Flash front-end

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.

4 thoughts on “Chugging along on Fless, the WordPress Flash front-end

  1. 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.

  2. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>