flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: R: Improve spark List performance
Date Tue, 03 Sep 2013 15:45:58 GMT


On 9/3/13 7:18 AM, "Evyatar Ben Halevi-Arbib" <evyatarbh@gmail.com> wrote:

>Hey,
>
>One more thing I suggest is having the buttons click event listener
>defined
>with weak reference -
> button.addEventListener(MouseEvent.CLICK,
>handleMouseClick*,false,0,true*);
I haven't looked at the code, but why?  Weak references can cause
intermittent behavior.  And these days, for future-proofing, it is best to
avoid them so you code will more easily port to JS if you need to do that
someday.

-Alex



Mime
View raw message