I am populating some comboboxes with a dynamic array (from a DB query) and I want to duplicate the comboboxes with a duplicate movie action. I have placed the comboboxes inside a parent mc labeled "linkrow_mc". The problem is once I duplicate the movie clip, linkrow_mc, I can't seem to populate the comboboxes in the newly created instance. Here is some of my code:
Code:
linkrow_mc.fieldname_cb.setDataProvider(fieldNames_rs);
//the above line successfully populates the oringinal combobox
for(i=1;i<14;i++){
linkrow_mc.duplicateMovieClip("linkrow_"+i+"_mc", i);
_root["linkrow_"+i+"_mc"]._y = linkrow_mc._y + (24*i);
_root["linkrow_"+i+"_mc"].fieldname_cb.setDataProvider(fieldNames_rs);
//this line does not populate the duplicated combobox. ?why?
}
What am I missing?
Thanks, Kevin