|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
superHolder
what is a superHolder movie clip? when i use the following code:
if (mainTag.childNodes[i].childNodes[j].nodeName == "Answers") { if (clip.RuleID == "1") { clip.attachMovie("FComboBoxSymbol", "FComboBox_cb", j); clip.FComboBox_cb._x =6; clip.FComboBox_cb._y = clip.questionText_txt._height+8; 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); } } i get 2 ComboBoxes for each loop - one that's the "real" combobox populated with list items that's located where i specify, and one that's "fake" - its called _level0.superHolder2000 (or _level0.superHolder2001, etc.) and its always at 0,0 and it never is populated with any list items. also, clicking on it activates the "real" combobox. has anyone else run across this? what do i do to get rid of the "fake" combobox? |
|
#2
|
|||
|
|||
|
bit of a hack...but...
if you drag a combo box onto the stage, right-click and convert it into a movie clip. then hide it (either by placing it off-stage or by setting the '_visible = false' attribute), you can duplicate this movie clip by using the 'duplicateMovieClip' method. this has worked for me in the past. be sure to give the movie clip an instance name so you can access it for duplication, then reference the inner combobox by it's instance name relative to the new movie clip, eg, mycomboMC.duplicateMovieClip("mycomboMC_"+i, i); eval("mycomboMC_"+i).mycombo.addItem(...whatever...); hope this helps |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > superHolder |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|