Copy link to clipboard
Copied
Hi all:)
I've got a ComboBox (called comboBox1) nested in another movieclip (called popUp1). Movlieclip popUp1 is by default hidden, and is getting visible after clicking on a certain button. However, comboBox1 is visible ALL the time (even when popUp1 is hidden).
When I set the comboBox1 visible parameter on off in its parameter settings, it does get hidden, but afterwards there is no way to put it on again by code. The normal code for setting visibility (this.object.visible = false;) doesn't work for this kind of object.
The comboBox is a movieclip (which is not changeable into anything else). I am working in an HTML5 canvas.
Any ideas?
Thanks in advance!
Canvas components are HTML DOM elements floated over the canvas, so you control them exactly like any other DOM element:
document.getElementById("myComponent").style.visibility = "hidden";
document.getElementById("myComponent").style.visibility = "visible";
Copy link to clipboard
Copied
I've had contact with Adobe Customer support. Unfortunately not of much help, but still: the conclusion of it:
1. Comboboxes just bug when using an HTML5 canvas
2. Just build your own combobox.
Copy link to clipboard
Copied
Canvas components are HTML DOM elements floated over the canvas, so you control them exactly like any other DOM element:
document.getElementById("myComponent").style.visibility = "hidden";
document.getElementById("myComponent").style.visibility = "visible";
Find more inspiration, events, and resources on the new Adobe Community
Explore Now