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

ComboBox Problem

Contributor ,
Dec 03, 2016 Dec 03, 2016

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

TOPICS
ActionScript

Views

1.1K

Translate

Translate

Report

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.

Votes

Translate

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

Copy link to clipboard

Copied

that's an animate cc 2017 bug.

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

Votes

Translate

Translate

Report

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

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?

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Sorry for the bump, but did Adobe solve this?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Did you try it?

Votes

Translate

Translate

Report

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