Copy link to clipboard
Copied
I'm trying to add some item to a combo box but I get the error message below:
//My script:
MyCombo.addItem({ label: "MyItem1"});
MyCombo.addItem({ label: "MyItem2"});
Why?
Any hint?
Thank you.
//the error message:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.containers::BaseScrollPane/drawBackground()
at fl.controls::List/draw()
at fl.core::UIComponent/drawNow()
at fl.controls::List/scrollToIndex()
at fl.controls::SelectableList/scrollToSelected()
at fl.controls::ComboBox/open()
at fl.controls::ComboBox/onToggleListVisibility()
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at fl.controls::ComboBox/close()
at fl.controls::ComboBox/onToggleListVisibility()
that's an animate cc 2017 bug.
either use an earlier version of animate or create your own combobox.
Copy link to clipboard
Copied
that's an animate cc 2017 bug.
either use an earlier version of animate or create your own combobox.
Copy link to clipboard
Copied
Thank you kglad.
But I don't understand why adobe give this component if it doesn't work.
Why don't give a good one?
Copy link to clipboard
Copied
i don't have an answer for that.
my guess is something new in animate 2017 (like adding components to canvas) caused a problem that no one detected. hopefully that will be fixed in the next update.
Copy link to clipboard
Copied
Sorry for the bump, but did Adobe solve this?
Copy link to clipboard
Copied
Did you try it?