<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
initialize="init()" >
<mx:Script>
<![CDATA[
import mx.events.FlexEvent;
import mx.controls.Alert;
import mx.rpc.AsyncDispatcher;
private function init():void
{
setTimeout(timerCompleted, 1000);
addEventListener(Event.COMPLETE,completed,false,0,true);
}
private function timerCompleted():void
{
dispatchEvent(new Event(Event.COMPLETE));
}
private function completed(ev:Event):void
{
Alert.show("completed !!!!!!!!!!!!!!!!!!!");
}
]]>
</mx:Script>
</mx:Application>
|