ksr732
03-13-2009, 08:14 PM
Hi,
I'm drawing a dynamic Sprite Object which has labels and corresponding tooltips. When I use the following piece of code to delete all the children of UIComponent (c) , only some labels are getting removed while the others remain.
var i:uint=0;
while(i< c.numChildren)
{
c.removeChildAt(i);
i++;
}
i've also tried :
for (var i:uint=0; i<c.numChildren; i++)
c.removeChildAt(0);
Kindly help me solve this problem
Thanx :)
I'm drawing a dynamic Sprite Object which has labels and corresponding tooltips. When I use the following piece of code to delete all the children of UIComponent (c) , only some labels are getting removed while the others remain.
var i:uint=0;
while(i< c.numChildren)
{
c.removeChildAt(i);
i++;
}
i've also tried :
for (var i:uint=0; i<c.numChildren; i++)
c.removeChildAt(0);
Kindly help me solve this problem
Thanx :)