Chugging along on Fless, the WordPress Flash front-end
Friday, March 28th, 2008I’ve spent a day or two reformatting and tightening up the code I left lingering on the Fless project I started.
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.

