Skip to content

Instantly share code, notes, and snippets.

@lancecarlson
Created February 20, 2009 10:48
Show Gist options
  • Save lancecarlson/67411 to your computer and use it in GitHub Desktop.
Save lancecarlson/67411 to your computer and use it in GitHub Desktop.
const Post:Model = new Model("post");
var request:Request = Post.findAll();
request.onComplete(function(posts:*):void {
posts.forEach(function(post:*, index:int, array:Array):void {
Alert.show(post.subject);
});
});
request.onError(function():void {
Alert("Darn");
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment