Rabu, 13 Januari 2010

Invasion to blogspot

Rushing Weird Word was my blog hosted in friendster. I haven't update it more than a year.
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.

2 komentar:

  1. That's all ?? Where is your ticlib :D share here ^_^

    BalasHapus
  2. Wakakak!!
    Iya nok, aku pengen nya sih di blogspot. tapi blogspot aku gak bisa import blog friendster ku..
    kalo wordpress bisa import tapi aktifin syntax highlighter harus bayar.. buseet..
    terpaksa deh buat blog di hosting gratisan.. tapi udah seminggu addurl di google, uda bikin back link di web orang tapi belum masuk juga..
    parah deh.. :))

    BalasHapus