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.
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
Copy link to clipboard
Copied
Flash is not the same of HTML canvas.
Copy link to clipboard
Copied
https://community.adobe.com/t5/animate-discussions/html-5-canvas-combo-box/td-p/10098520
Take a look at this and see if he can help.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now