First define a Timer with the specified timeinterval.
var mTimer:Timer=new Timer(3000); –> here 3 secs.
Now add eventlisteners as Timercomplete.
mTimer.addEventListener(TimerEvent.TIMER_COMPLETE,Comple);
start the Timer.At a needed location.
mTimer.start();
Now define the function as called from the EventListeners.[i.e Comple].
private function Comple(e:TimerEvent):void
{
//Disable the app with the line of code below.
this.enabled = false;
}
This will Disable the App after 3 secs.
There is a clear post on use of Timer below this post, read it to know the basics of the Timer.
Enjoy the code !. The below snashot is the disabled Flex app.



March 26, 2008 at 8:16 pm |
fwaNus hi good site thx http://peace.com
March 27, 2008 at 11:31 am |
Q8ugHE hi super site thanks http://peace.com