Skip to main content
Participant
December 13, 2018
Question

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

  • December 13, 2018
  • 2 replies
  • 488 views

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.

This topic has been closed for replies.

2 replies

Community Expert
July 25, 2022
Preran
Community Manager
Community Manager
December 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

alfonsop23593336
Participant
July 20, 2022

Flash is not the same of HTML canvas.