user267530
user267530

Reputation: 15

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

Upvotes: 0

Views: 241

Answers (1)

invertedSpear
invertedSpear

Reputation: 11054

Application.application.removeAllChildren();

Upvotes: 1

Related Questions