1 Reply Latest reply on Aug 29, 2006 9:59 PM by OniLink

    listener

    jagguy99 Level 1
      Every object has events that you can simply code in the main frame1 eg object.onPress for a button.

      I read the listener events are for objects to communciate with each other as the main difference, but some objects i see have listener events but only deal with itself.

      I am confused as to what a listener event is basically.
        • 1. Re: listener
          OniLink Level 1
          A listener event basically checks what is happening with the object. For example when an object changes:

          object_listener = new Object();
          object_listener.change = function() {
          // do somthing when changed
          }
          object_name.addEventListener("change", object_listener);

          You can change the listener type from "change" to "click", "move", "keyUp", etc. depending on the object being used.