Posts Tagged ‘fless’

Chugging along on Fless, the WordPress Flash front-end

Friday, 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.

fless v 0.00001 alpha

Wednesday, November 21st, 2007

It ain’t much but this is what 0 - 1 hr of PHP knowledge and 4 months of AS3 knowledge will get you in an afternoon.
fless