Skip to main content
Known Participant
October 13, 2020
Answered

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

  • October 13, 2020
  • 1 reply
  • 328 views

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!

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

    This topic has been closed for replies.
    Correct answer ClayUUID

    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.

    1 reply

    ClayUUIDCorrect answer
    Legend
    October 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.