1 Replies - 1211 Views - Last Post: 19 April 2010 - 04:41 AM

#1 reyco1  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 43
  • Joined: 20-March 05

UI Component - ComboBox

Posted 27 March 2005 - 05:00 AM

Description: place a comboBox component on the stage and give it an instance name of myComboBox. Add som labels onto it by selecting it and clickin on "propertie". paste the code onto the first frame of the movie.Listener for the comboBox component
myComboBoxListener = new Object();
myComboBoxListener.change = function(eventObj) {
     var eventSource = eventObj.target;
     var theSelectedItem = eventSource.selectedItem;
     var theSelectedItemLabel = theSelectedItem.label;
     trace("You selected "+theSelectedItemLabel+".");
};
myComboBox.addEventListener("change", myComboBoxListener);


Is This A Good Question/Topic? 0
  • +

Replies To: UI Component - ComboBox

#2 aha16  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 19-April 10

Re: UI Component - ComboBox

Posted 19 April 2010 - 04:41 AM

gg
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1