5 Replies Latest reply on Sep 9, 2010 6:52 AM by Cyril Desmoinaux

    UI Event listeners in CS5

    Cyril Desmoinaux

      I'm trying to have a dropdown react to changes in order to update other UI objects.


      The code I use (only trying to get an alert for test purposes) :


      var myDropdown = dropdowns.add({ stringList: myLabels, selectedIndex: 0 });

      myDropdown.addEventListener('afterUpdate', function() { alert("Hello"); });

      Nothing happens when using the dropdown, whatever the event I use ("onInvoke", "afterUpdate"...)
      Any idea ?