That kinda made sense. Will have to read about 5 more times though.. lol :P
thanks Henrik.

Time to go vote. I will be back later to see if I can pull an elephant out my WHOO HOO.


On Oct 24, 2012, at 3:32 PM, Henrik Andersson wrote:

Karl DeSaulniers skriver:
Thanks Henrik,
Well for this, there are two buttons on stage.
When you hover over one it makes a message appear, if the other another
message appears.
So if I dont use those, your saying that when I roll out, the listener
is removed automatically?

I am saying that the last argument to addEventListener becomes
irrelevant. the argument only matters if the listener function has
captured a reference to its original scope
(shown as savedThis in the debugger) (the class instance it came from)
AND the original scope has no more live references to it AND the
listened to object is live.

This is irrelevant, since in nearly all cases the original scope was the
one who created the listened to object in the first place and as such
both will die at the same time.

Flashcoders mailing list

Karl DeSaulniers
Design Drumm

Flashcoders mailing list

Reply via email to