I have a few questions about Event Listeners. Please answer them clearly.
- Do we always need to removeEventListener every time we do addEventListener?
When removing an object from stage, does it also remove its eventlisteners? Example, lets say i have a textfield with event listener like the one below.
txtField1.addEventListener(Event.CHANGE, F_onCHange_TxtField);
I have a code that removes the textfield from stage my question is this: In removing the textfield, does it also remove the eventListener automatically?
- When removing eventListeners, does it help enhance performance or maybe something else?