4 Replies Latest reply on Apr 2, 2014 1:09 AM by nsa91

    Illustrator CC not handling ART_SELECTION_CHANGED event

    mityaf Level 1

      I have the following code to register a handler:

       

       

      var instance:CSXSInterface = CSXSInterface.getInstance();

       

      var adapter:EventDispatcher = AIEventAdapter.getInstance();

      adapter.addEventListener(AIEvent.ART_SELECTION_CHANGED, selectionChangeListener);

       

      protected function selectionChangeListener(event:Event):void

      {

      (BREAKPOINT)

           ...

       

          someCode

       

          ...

      }

       

       

      I run in Illustrator CC debug mode putting a breakpoint in the selectionChangeListener function.

      The handler should fire when I move any object on the canvas, but nothing happens.

       

      When I do the same in CS6 everything works fine and the handler runs.

       

      Is anyone else having problems with this event? or events in general?