FlexApp appLoaded Example
FlexApp.mxml has a method called appLoaded. The appLoaded
method is called by the applicationComplete event. The call is shown
in the following sample:
<mx:Application …………………applicationComplete="appLoaded();">
………………….
public function appLoaded():void
{
Application.application.signAssetLoadComplete(this);
}
The appLoaded method notifies the parent application -- in this case Interactive Detailer -- that the Signature Asset is loaded and ready to load SignatureCtrl.swf, using the following statement:
Application.application.signAssetLoadComplete(this);
Where Application.application refers to Interactive Detailer and signAssetLoadComplete refers to a method in Interactive Detailer that receives a pointer to the Signature Asset as an input parameter. This pointer will be used by the Interactive Detailer to send data to the SignatureCtrl.swf embedded in the Asset.