Skip to main content
RenoToonen
Inspiring
December 8, 2018
Answered

ComboCox component not getting hidden like all other movieclips

  • December 8, 2018
  • 2 replies
  • 213 views

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!

This topic has been closed for replies.
Correct answer ClayUUID

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";

2 replies

ClayUUIDCorrect answer
Legend
December 10, 2018

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";

RenoToonen
Inspiring
December 10, 2018

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.