0 Replies Latest reply on Dec 24, 2008 1:19 PM by W_Bell

    Loader Component "Click" Listener

    W_Bell Level 1
      I want to get a click action from a Loader component by using a Listener.
      This does not work and I want to know if there is a way to define a click using:
      myLoader.handleEvent(click)

      or is this not possible?

      listener = new Object();
      myLoader.handleEvent(click)

      listener.click = function(objEvt) {
      // call function you want
      nextbutton();
      //Add mouseover hand
      };
      myLoader.addEventListener("click",listener);

      I guess failing this I could fake it with an alpha button
      but that would be rather crude.