The useWeakReference parameter of EventDispatcher.addEventListener()
does not seem to work. Also, the method has a bug, which is that the
event listner function cannot be deleted with the parameter set to true.
Flash 9 ActionScript 3.0 Preview:
"Does useWeakReference parameter of addEventListener() method work?"
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=612&threadid=1186643&enterthread=y
_____
Meinte van't Kruis wrote:
I am using weak references for the listener, here's the code (within
GCTarget):
this.addEventListener(Event.ENTER_FRAME,onFrame,false,0,true);
}
private function onFrame(e:Event):void{
trace("A");
}
So I don't think that's it, else it wouldn't really matter if I pass
arguments or set variables
or not , because if I don't it does get deleted properly.
Good luck,
--
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My books<http://www.FumioNonaka.com/Books/index.html>
Flash community<http://F-site.org/>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com