If I add an Event Listener to a popup, like:
var p:MyPopUp = new MyPopUp(); p.addEventListener('myEvent', myEvent); PopUpManager.addPopUp(p, this, true);
When I close the popup afterwards using:
Does the Event Listener also get removed/recycled automatically?
Event listeners are never removed automatically. Note that adding the event
listener in your example will not prevent garbage collection as the popup
now has reference to the myEvent method, not the other way around.