Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ComboBox Problem

Contributor ,
Dec 03, 2016 Dec 03, 2016

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()

TOPICS
ActionScript
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 03, 2016 Dec 03, 2016

that's an animate cc 2017 bug.

either use an earlier version of animate or create your own combobox.

Translate
Community Expert ,
Dec 03, 2016 Dec 03, 2016

that's an animate cc 2017 bug.

either use an earlier version of animate or create your own combobox.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 03, 2016 Dec 03, 2016

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 03, 2016 Dec 03, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2019 Jan 21, 2019

Sorry for the bump, but did Adobe solve this?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 27, 2019 Feb 27, 2019
LATEST

Did you try it?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines