Writing INIT() ffunction syntax for a crawler

hey i m working on adobe flex. i hav to write an actionscript but i m unable to write the syntax of INIT() function.
also some info about it wud be greatly appreciated…like i know it’s being used for initializing but here in crawler code what all do i need to initialize.

init()
}

general syntax for a crawler ;

{