4 Replies Latest reply on Oct 18, 2007 12:36 PM by kebat

    action to control combo box

    kebat
      Hello!

      I have 3 combo boxes. The first one has 3 labels "1", "2" and "3". The second combo box has 5 labels "a", "b", "c", "d" and "e". The third combo box has 3 labels "zz", "xx" and "ww".

      I would like to know if it is possible to have a script that says: If i chose "1", "c" and "xx" then load movie "1cxx.swf", if i chose "3", "a" and "zz", loadMovie "3azz.swf".

      I fill my combo boxes with the following code:
      cb.dataProvider = [
      {label:"Seleccione a Marca", data:""},
      {label:"1", data:""},
      {label:"2", data:""},
      {label:"3", data:""}
      ];
      var obj = {};
      obj.change = function() {
      trace(cb.selectedItem.data);
      loadMovieNum(cb.selectedItem.data,1);
      };
      cb.addEventListener("change", obj);

      Is it possible? How would I do it?
      Thanks