jib
06-20-2007, 04:10 AM
Hey guys,
Another simple question (I hope):
Have a listbox in flash, and not really sure how to refer to it's contents in action script. I'll just simplify the situation:
Labels:
[Red, Yellow, Blue]
Data:
Select Multiple:
false
Change Handler:
Lbox_1
I'd like to start the clip, with "Red" automatically highlighted, but can't really figure out how to use this.
Tried: Lbox_1 = "Red" (But of course this doesn't work - I was kind of expecting it would be slightly more complicated)
Also I'd like to be able to make statements like:
If (Lbox_1 == "Yellow") {...such and such}
But something tells me I am not communicating properly with the list box... Do I have to give the Listbox an instance name also?
I am guessing it will be something simple like:
if (Lbox1._value == "Yellow") {such and such};
But the trial and error thing isn't going so well today!
Thanks in advance - for your assistance and patience,
Cheers,
Jib
Another simple question (I hope):
Have a listbox in flash, and not really sure how to refer to it's contents in action script. I'll just simplify the situation:
Labels:
[Red, Yellow, Blue]
Data:
Select Multiple:
false
Change Handler:
Lbox_1
I'd like to start the clip, with "Red" automatically highlighted, but can't really figure out how to use this.
Tried: Lbox_1 = "Red" (But of course this doesn't work - I was kind of expecting it would be slightly more complicated)
Also I'd like to be able to make statements like:
If (Lbox_1 == "Yellow") {...such and such}
But something tells me I am not communicating properly with the list box... Do I have to give the Listbox an instance name also?
I am guessing it will be something simple like:
if (Lbox1._value == "Yellow") {such and such};
But the trial and error thing isn't going so well today!
Thanks in advance - for your assistance and patience,
Cheers,
Jib