2 Replies Latest reply on Aug 14, 2007 11:27 PM by lokat

    How to set particular comboBox item selected once frame loaded?

    lokat
      I have a comboBox with all the items with data and labels (set in the parameter of comboBox). However, I can't set the particular comboBox item to display when the frame entered, like this:

      var listenerObject:Object = new Object();
      listenerObject.load = function(eventObject:Object) {
      _root.cb.selectedIndex=3;
      };
      _root.cb.addEventListener("load", listenerObject);

      What's wrong?