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

how to leave addchild with z-index 0 above a compoment?

Community Beginner ,
Oct 13, 2020 Oct 13, 2020

var Bt = new lib.objetos;
this.addChild(Bt);
Bt.x = 275, 5
Bt.y = 200, 5
var child = Bt
this.setChildIndex(child, this.numChildren - 1);

//////////////////////////////////////////

z-index continue 1 dont 0!

//////////////////////////////////////////

299
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 , Oct 13, 2020 Oct 13, 2020

Objects on the stage cannot appear above components. Everything on the stage is drawn on a single HTML canvas element. Components are HTML DOM entities floating above the canvas.

 

And stop asking the same question twice.

Translate
LEGEND ,
Oct 13, 2020 Oct 13, 2020
LATEST

Objects on the stage cannot appear above components. Everything on the stage is drawn on a single HTML canvas element. Components are HTML DOM entities floating above the canvas.

 

And stop asking the same question twice.

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