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

I can't add items to the combobox from animate code cc html5

New Here ,
Dec 13, 2018 Dec 13, 2018

He intentado con

var obj = new Object();

obj.label = 'Label';

obj.data = 'Data';

var optionBox = document.createElement('option');

optionBox.label = obj.label;

optionBox.value = obj.data;

document.getElementById("cb").add(optionBox);

no funciona, dice que no reconoce la función add

también de esta forma

this.cb.addItem({label:"prueba", data:1});

o así

this.cb.addItem({data:1, label:"prueba"});

todas las opciones me dicen que no reconoce addItem o add, sale error

estoy trabajando en animate cc html5 canvas

he probado mil cosas y nada me funciona

alguien que me ayude por favor.

459
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
Adobe Employee ,
Dec 17, 2018 Dec 17, 2018

Not the expert here, and this article is more to do with creating a drop down menu using an interface, but sharing it just in case it helps. Flash Drop Down Menu Tutorial - Adobe Flash

Thanks,

Preran

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 ,
Jul 20, 2022 Jul 20, 2022

Flash is not the same of HTML canvas.

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 ,
Jul 25, 2022 Jul 25, 2022
LATEST
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