[_] AS2 event listeners
juan kennaugh
contact at jkennaugh.co.uk
Sun Oct 14 12:04:35 BST 2007
Hi I've just realised that I've been using 'addListener' and 'addEventListener' without noticing the difference (I've been copy various bits of code). I've been trying to get my head around listeners once and for all this weekend. I've just found out that 'addEventListener' is only for components (correct me if I'm wrong). does that then mean that I have to create a listener for every event I want hear in a component? If so, is there a good reason for this? It makes more sense to me that you could just make one listener for a component and then define a callback function for each event of that component. Can anybody enlighten me? Cheers Juan