Change Combo Box label?

3 posts

Flag Post

Hi everyone!

I’m testing Combo Boxes and frames. My project is like this:
– I have a Movie Clip with 3 frames;
– 1 Button that changes this movie clip frame to the next one;
– 1 Button that changes this movie clip frame to the anterior one;
– 1 Combo Box that switches the frames.

Everything is working but, when I click on a Button to change the Movie Clip frame, I want that the label of the Combo Box changes too.

What would be the comand to do that?

tks!

P.S.: I’m using an external class in AS2

 
Flag Post

ComboBoxReference.selectedIndex = SomeValue;

The value passed is the index of the label you want (likely one less than the current frame).

 
Flag Post
Originally posted by Draco18s:

ComboBoxReference.selectedIndex = SomeValue;

The value passed is the index of the label you want (likely one less than the current frame).

Thank you so much!