Quite happy playing in blogspot now because i can customize my blog appearance too sims like my former blog does. I choose a simple but elegant template, and setup a Syntax Highlighter on it. take a look at the code snippet below. :)
private function tryShow(name:String, params:Object = null, loadInitialData:Boolean=true, writeUrl:Boolean = true):void
{
var page:IPage = getPageByName(name);
//page not found show default page
if(page == null)
{
var def:IPage = getDefaultPage();
navigate(page);
if(writeUrl) _urlManager.writeObjectToUrl(page, null);
return;
}
if(isAuhorize(page))
{
//show page if user is autorized
navigate(page);
if(loadInitialData) page.load(params, false);
if(writeUrl) _urlManager.writeObjectToUrl(page, params);
return;
}
else
{
//show login page if not authorized
saveRedirection(name, params);
var login:IPage = getLoginPage();
navigate(login);
return;
}
}
Yeah!! it's rock!! i found a good tutorial on using it, check this out here.