PDA

View Full Version : FComboBox


eggnogg
05-30-2003, 03:43 PM
heya

how can i make an action occur AFTER i select an item from a comboBox?

regards
eggnogg

CyanBlue
05-30-2003, 05:35 PM
Howdy... ;)

I am not quite sure what you are asking regarding 'after' part, but you can generally use 'FComboBox.setChangeHandler()' to set the action for the selected item... Refer to the Flash manual for more information... It has some example you can check out... ;)

subquark
05-30-2003, 05:41 PM
CyanBlue!?! Take a break, you are a CODEBEAST!

eggnogg
05-30-2003, 05:44 PM
well, i have a dynamic text next to the combo that i want to use to retrieve the data of the item i choose from the combo's list.

if i want to make this retrieval "at the same time" i'd use: [as]
dynamicBox = combo.getSelectedItem().data;[as]

but this turns out to have a bug! if u pass your mouse over an item on the list but then click outside the list, no item from the list will be choosen but the dynamicBox shows the value of the last item that the mouse passed over!

so, what i wanna do is: when (or if) the user clicks to choose an item, the dynamic box retrieves it's data, but if the user doesnt actually click the item, the dynamic box returns to zero! OR it only retrieves the item "AFTER" the user clicks an item (and still, if no item is clicke, dynamicBox = 0)

regards
eggnogg

eggnogg
05-30-2003, 06:16 PM
too complicated? :p

eggnogg

eggnogg
05-31-2003, 10:53 AM
goto http://www.cybersystems.pt/comboBox.html please

regards
eggnogg

CyanBlue
05-31-2003, 12:05 PM
Sorry... That's way over my league... I don't even know where to start... :(

crasher2k5
10-02-2006, 02:05 AM
well, i have a dynamic text next to the combo that i want to use to retrieve the data of the item i choose from the combo's list.

if i want to make this retrieval "at the same time" i'd use: [as]
dynamicBox = combo.getSelectedItem().data;[as]

but this turns out to have a bug! if u pass your mouse over an item on the list but then click outside the list, no item from the list will be choosen but the dynamicBox shows the value of the last item that the mouse passed over!

so, what i wanna do is: when (or if) the user clicks to choose an item, the dynamic box retrieves it's data, but if the user doesnt actually click the item, the dynamic box returns to zero! OR it only retrieves the item "AFTER" the user clicks an item (and still, if no item is clicke, dynamicBox = 0)

regards
eggnogg

sorry guys to revive an old thread, but im facing the same problem at the moment, problem is that i cant use v2 of the component and it has proven to have a visual bug on flash player lower than 8 (on 9 it plays fine whereas in 8 it has a bug on the visual ). Did anyone came up with a solution for this or has an idea ?

Thanks