Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ComboCox component not getting hidden like all other movieclips

Community Beginner ,
Dec 08, 2018 Dec 08, 2018

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!

183
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 10, 2018 Dec 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";

Translate
Community Beginner ,
Dec 10, 2018 Dec 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 10, 2018 Dec 10, 2018
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines