applicationComplete->creationComplete->initialize
demo:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:controls="com.fxcomponents.controls.*"
backgroundColor="#444444" themeColor="#628CAF" backgroundGradientAlphas="{[0,0]}" initialize="init1()"
applicationComplete="init3()" creationComplete="init2()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function init1(): void
{
Alert.show("init1");
}
private function init2(): void
{
Alert.show("init2");
}
public function init3(): void
{
Alert.show("init3");
}
]]>
</mx:Script>
</mx:Application>