|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
FComboBox problem
can anyone tell me why, by using this code, no items are being added to my combo boxes? they appear totally disabled - no arrow button, no items, etc. do i need to set some property that enables the combo box and allows me to add items to it?
clip.attachMovie("FComboBox", "FComboBox_cb", 2); clip.FComboBox_cb._y = 100; clip.FComboBox_cb.setEnabled(true); for (k=0; k<mainTag.childNodes[i].childNodes[j].childNodes.length; k++) { if (mainTag.childNodes[i].childNodes[j].childNodes[k].nodeName == "QuestionChoiceID") { QuestionChoiceID = mainTag.childNodes[i].childNodes[j].childNodes[k].firstChild.nodeValue; } else if (mainTag.childNodes[i].childNodes[j].childNodes[k].nodeName == "QuestionChoiceDesc") { QuestionChoiceDesc = mainTag.childNodes[i].childNodes[j].childNodes[k].firstChild.nodeValue; } } clip.FComboBox_cb.addItem(QuestionChoiceDesc, QuestionChoiceID); |
|
#2
|
|||
|
|||
|
this is verging on double-posting. i responded to your most recent on the subject.
please try to keep your posts on the same subject under the same thread. ![]() |
|
#3
|
|||
|
|||
|
same problem!
I have been having exactly the same problem - a combo box or list box, does not update when I use addItem() at runtime (regardless if I added the compoent at design time or runtime), but will execept design time values only (which is useless). I find that it only happens sometimes, which is expremeemly annoying, but can't figure out why.
Does anyone have any ideas? |
|
#4
|
|||
|
|||
|
Possible solution...
I had a problem like this. The Combo Box seemed to be populating correctly, but when I went to press the "drop down" button, nothing would happen - I couldn't see any of the items in the combo box except the first one (0 index).
My movie had multiple levels with one movie loaded into each level. Some movies had combo boxes - and the combo boxes were assigned individually to each movie's library. In order to fix the problem, I changed the linkage of the combo box to a different name (for example, FComboBoxSymbol2) and then in the class definition changed the Object.registerClass to use this new linkage (for example, Object.registerClass("FComboBoxSymbol2", comboBox). This seemed to do the trick, as my combo boxes started working immediately. Hope this helps. -Ryan |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > FComboBox problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|