|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i'm new to flash...so bear with me if this seems like an elementary question...
i've been finding tutorials on how comboboxes can be used in forms, but in my case i want the items in my list to load text and pictures...similar to how a button can go to a different scene or frame. any scripts i can try out? thanks! kb_jane |
|
#2
|
|||
|
|||
|
Here's a very generic example. Create two images called 'image1' and 'image2'.
Add a combo box. Your labels can be called anything. For this example I'll call them 'image1' and 'image2'. The data should be 1 and 2 and the changeHandler should be 'loadImage'. So your combobox parameters should look like this: Editable = false Labels = [image1,image2] Data = [1,2] Change Handler = loadImage On the main timeline at this code to the first frame. Code:
function loadImage() {
for (i=1; i<=2; i++) {
if (myComboBox.getValue() == i) {
loadMovieNum("image"+i+".jpg", 1);
}
}
}
Test your movie! Be sure your images are located in the same directory as your Flash file for this example. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > combobox components |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|