Q:

cleanup all UIComponents inside mx:Application

I  create some elements( UIComponents, mainly Panels) inside the “mx:Application name=”tst” “.  I need to cleanup all those  UIComponent’s  on MouseClick event , using Actionscript.  Is there any way I access the children elements of mx:Application ( I used 

        var totalChildren:Number = this[‘tst’].numChildren ; 

but looks like it fails to access the children list). 
Thanks
Palash

A:

Application.application.removeAllChildren();

