Re: [flexcoders] event listeners on Sprites - performance problem

2008-07-24 Thread Rick Winscot
Are all 10-15 markers visible at one time? If not, you might want to consider the 'recycle' method that is employed with item renderers. Either that... or have a single MEGA WONKA sprite where each marker is drawn at the appropriate location. Rick Winscot On Wed, Jul 23, 2008 at 12:42 PM, Alex

RE: [flexcoders] event listeners on Sprites - performance problem

2008-07-23 Thread Alex Harui
10 to 15 shouldn't be a problem. Make sure it is only that many (and you didn't create more and stack them on top of the others). Are you saying the addEventLIstener calls are affecting the cpu load? From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] Event Listeners

2005-05-19 Thread Alistair McLeod
Hi Michael, I imagine its because your event listener is an anonymous function, so the removeEventListener must be passed a reference to the same function. Try this (untested) myHandler : Function = Delegate.create( this, handleEvent ); pane.addEventListener("contentCreated",myHandler

RE: [flexcoders] Event Listeners

2005-05-19 Thread Michael Herron
Hi Alistair, That worked perfectly, cheers! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alistair McLeod Sent: 19 May 2005 12:31 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Event Listeners Hi Michael, I imagine its because