Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : How do you select a value in the combobox


TG_Laszlo
3/8/2004 9:12:30 PM
Ok I got MX 2004, and I put a combobox on the canvas and on the first frame, on
the second frame I have another combobox. Now when I browse back and forth from
frame 1 and 2 the comboboxes select the first index in the list. And I have
about 4 in the list of each of the comboboxes. I recalled a script such as
combo.selectIndex = 1; but that I think was for Flash 6 or 7, not sure. Not
sure if I have to put a listener of some sort. I know I can write a listener to
read what I've selected, which index on the list, but nothing stating that you
can set the index on which the combobox is selected when it enters the frame.
Can you please help
jeffczyz
3/9/2004 12:26:37 AM
TG_Laszlo,

It's combo.selectedIndex=1;

Case Sensitive as usual as well.

AddThis Social Bookmark Button