4 Replies Latest reply on Apr 19, 2009 11:03 PM by iamfuric

    EventDispatcher

    iamfuric Level 2

      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