Skip to main content
Participant
Dec 13, 2018 3:10 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Community Expert
Jul 25, 2022 1:50 PM UTC
Preran
Legend
Dec 17, 2018 7:33 PM UTC

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
alfonsop23593336
Participant
Jul 20, 2022 7:46 PM UTC

Flash is not the same of HTML canvas.

Translate