PDA

View Full Version : Combobox not "dropping down" in parent movies


GraphicEngineer
07-09-2004, 08:35 PM
MX 2004 Professional, PC

I have a simple child movie with a combo box filled. It works independently just fine. When I have it loaded into another movie...the drop down does not work. The selected item still is showing, but I can guess perhaps its either not populated?? with the rest of the data...or in fact - the component becomes inoperatable.

I have not done any font formatting to the comboBox.

Below shows how I populated and selected the item -- works fine alone...

for (i=0; i<locationArray.length; i++) {
locCombo.addItem(locationArray[i].getCity());
if (locationArray[i].getCity() == gh.getLocation().getCity()) {
selIndex = i;
newLocation = locationArray[i];
}
}
locCombo.setSelectedIndex(selIndex);


where locationArray is an array of a custom class object with a function: getCity(). gh is just another larger object that contains this location object.
Code works same when simplified. Problem persists.

Any help would be greatly appreciated!

[CyanBlue, I know you've dianosed something similar to this before...but those seemed to be font related - any other ideas?]

GraphicEngineer
07-09-2004, 09:54 PM
Okay -- well -- I'm not satisfied with the answer - but I finally got it to work.
It does require the component (comboBox) to be copied into the parent movie.

Why on earth would that be an acceptable fix - I will not know.