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

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

New Here ,
Dec 13, 2018 Dec 13, 2018

Copy link to clipboard

Copied

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.

Views

382

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

Flash is not the same of HTML canvas.

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

Copy link to clipboard

Copied

LATEST

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