Skip to main content
Known Participant
October 13, 2020
解決済み

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

  • October 13, 2020
  • 返信数 1.
  • 328 ビュー

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!

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

    このトピックへの返信は締め切られました。
    解決に役立った回答 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

    ClayUUID解決!
    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.