7 Replies Latest reply on Jun 27, 2012 4:46 AM by Harbs.

    add the event listener to link

    Mac_06 Level 2

      I am trying to trigger an event as image link is modified in InDesign file, using action script API in csaw lib. But it's thowing the error:


      invalid value for parameter 'handler' of method 'addEventListener'. Expected File or JavaScript Function, but received nothing.


      here is my code to add and handle the event:



      tempLink.addEventListenerLink("afterAttributeChanged", handleLinkModified);
      private function handleLinkModified(event:com.adobe.indesign.Event):void
        trace("From link handler: LINK modified");


      I got this idea from one of John Hawkinson Thread: http://forums.adobe.com/message/4049418

      Can someone let me know what''s going wrong with my logic?