Hi
I'm wondering how EventDispatcher knows about execution context of Function objects it registers with addEventListener(type:String, listener:Function).
Somewhere EventDispatcher should execute Function's ''call'' or ''apply'' method and pass execution context (the object to which the function is applied).
AFAIK,in AS3.0 ''caller'' reference was removed and there is no way to get caller in addEventListener function.
Please clarify
EventDispatcherAre you looking for event.currentTarget?
EventDispatcherNo
I'm wondering how Function object instance references to ''this''聽 (parent object) while being executed by EventDispatcher, i.e. what is the first parameter EventDispatcher pass to ''call'' or ''apply'' method....
No clue to what your question is... please clarify.
Have a look at this :
http://www.actionscript.org/forums/showthread.php3?p=874167#post874167
No comments:
Post a Comment