Look at the backreferences from the Button in the profiler. My guess is that the FocusManager still is hanging on to it
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of stephen_anson Sent: Wednesday, November 05, 2008 7:37 AM To: [email protected] Subject: [flexcoders] profile still shows removed instances Hi, I'm adding a custom UIComponent to the application and then later removing it. In the profiler it is still showing up as existing ( even after garbage collection and setting it to null etc here is a simplified example, custom butt extends standard button and does nothing else. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:comps="*" creationComplete="init()"> <mx:Script> <![CDATA[ private var butt:CustomButt; private function rem(e:Event):void { butt.removeEventListener(MouseEvent.CLICK, rem); removeChild(butt); butt = null; } private function init():void { addChild( butt = new CustomButt()); butt.addEventListener(MouseEvent.CLICK, rem); } ]]> </mx:Script> </mx:Application> anyone any ideas?, is removing child elements in a flex different to standard AS 3

