3 Replies Latest reply on Oct 19, 2006 8:43 AM by kglad

    Combo Box Help

    Dave.Hollings
      Hi all,

      This might be a simple one however I just can't figure out why it is not working. I have a combo box on my stage and and send_btn.

      I have added a trace on a variable which I am trying to store the label the user selects in the combo box. I have the following code

      Listener:

      // event listener & handler function
      var cbListenerbject = new Object();
      cbListener.change = function(evt_obj):Void {
      var currentlySelectedobject = evt_obj.target.selectedItem;
      var topic = currentlySelected.label_;
      };

      Send function:
      this.send_btn.onRelease = function()
      {
      trace(topic)
      };

      Can someone please help with this, thanks in advance