The life cycle events like initialize, preinitialize and creationcomplete are handled pertty much in the same way as any other event. The MXML document with tag for handler and attributes as the event name and handler function as value should be enough to trigger the handler for the specific event. The function can be defined in the actionscript.