0)
stepToPost(posts.length);
}
public function handleFault(event:FaultEvent):void
{
microblog.text = "Error: " + event.fault.faultString + "\n"
+ event.fault.faultDetail;
}
public function stepToPost(step:int):void
{
if (currentPostIndex+step >= 0 && currentPostIndex+step <= posts.length-1)
{
currentPostIndex += step;
microblog.text = getText(posts[currentPostIndex]);
}
}
public function getText(post:XML):String
{
return post.title
+ "\n\n\n"
+ post.description
;
}
]]>