If in a component I have basic Button which can propagate MouseEvent.CLICK like this :
<s:Button id="btn" click="someFunction(event)" />
Should I manually remove this event if I remove my component with parent.removeElement(myButton) function or is it automatically removed ?
Thanks for clarification
addEventListener()function ? Or shold I use weak reference ? - Olivier J.addEventListener()- ketanTimer, I have to useremoveEventListenerto avoid memory leaks, is it true ? - Olivier J.timer = nullit should be ready for garbage collection. In smaller projects in most cases it makes no diferenece. In bigger ones it porpably will make difference. But, Personally, In my code, I would still remove the listener. - ketan