Having the same problem here.
Stepping through the code, I get to this function in
mx.managers.SystemChildrenList.
public function removeChild(child:DisplayObject):DisplayObject
{
var index:int = owner.mx_internal::rawChildren_getChildIndex(child);
if (owner[lowerBoundReference] <= index &&
index < owner[upperBoundReference])
{
owner.mx_internal::rawChildren_removeChild(child);
owner[upperBoundReference]--;
}
return child;
}
Where:
index = 2
owner[lowerBoundReference] = 1
owner[upperBoundReference] = 2
So the child is not being removed.
Any ideas?
Peter
On 4/20/07, Alex Harui <[EMAIL PROTECTED]> wrote:
Time for trace statements to make sure it does get called when there
are no break points. I'd even trace out the numChildren of systemManager to
see if it changed at all. Could it be that a replacement is being popped
up?
------------------------------
*From:* [email protected] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Rick Root
*Sent:* Friday, April 20, 2007 10:46 AM
*To:* [email protected]
*Subject:* Re: [flexcoders] Problem removing popup window
I also tried this within my progressWindow component...
public function remove():void
{
callLater(remove2);
}
public function remove2():void
{
PopUpManager.removePopUp(this);
}
Which also didn't work. I mean, it still works in at all times in
debug mode with the breakpoint.. but not without.
Frustrating!
Rick