5 Replies Latest reply on Sep 20, 2007 5:27 PM by kglad

    Listener gone deaf

    chopTheWood Level 1
      Can anyone shed any light on why my Listener isn't listening any more? It worked fine until one day it just stopped. I can't find anything else in the script that would conflict in any way. There are two buttons in a radio group named "gallery". They are named "water" and "oil" The data for "oil" is "oil" and the data for "water" is "water". Click on the "oil" button and it will hilight though the trace msg does not appear. Hear is the script:

      ----------------------
      //LISTEN FOR RADIO BUTTON CLICKS FOR THE GALLERY TYPE, THEN LOAD GALLERY DIRECTORY OF IMAGE NAMES
      var galleryListener:Object = new Object();
      gallery.addEventListener("click", galleryListener);
      galleryListener.click = function(evt) {
      theData = (evt.target.selection.data);
      switch (theData) {
      case "oil" :
      trace("you clicked on the oil button");

      break;
      case "water" :
      break;
      default :
      trace("no cases selected");
      }
      };

      ----------------------
      Note that I have another movie with the same script in it which DOES work!