Ben may not have been, but I always have been thinking of this.
It would be handy in debugging memory issues for one thing, and also a
bit quicker (and surer, given the possibility of missing one?)  to loop
and clear all than specifically clearing several events on, say, a
streamLoader or similar. Or have a removeAllEventListeners() method ...
I was wondering if there was any specific reason for it not being
exposed, or whether in fact it was but I'd been a bit too dumb or lazy
to spot it.
 
Jim.
 
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: 28 November 2007 14:15
To: [email protected]
Subject: Re: [flexcoders] Am I the only one who wishes EventDispatcher
exposed its listeners?
 
I can see this functionality being useful for various reasons. Ben, are
you thinking you want to track down any listeners that are left over
that are preventing garbage collection?

Doug
On 11/28/07, ben.clinkinbeard <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:
Sometimes it would be really nice be able to access a list of
currently attached listeners by doing something like
myButton.listeners. Having that return a collection of objects that
expose the event type and handler method would be nice and it doesn't
seem like it would be that hard to implement since they're obviously
already kept track of somewhere.

Does anybody else wish this was provided? Does anyone from Adobe have
info on why its not and/or if it might be someday?

Thanks,
Ben
 
 

______________________________________________________________________
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
______________________________________________________________________

Reply via email to