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

Community Beginner ,
Oct 13, 2020

Copy link to clipboard

Copied

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!

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

Views

60

Likes

Translate

Translate

Report

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

1 Correct Answer

Adobe Community Professional , Oct 13, 2020
ClayUUID Adobe Community Professional , 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.

Likes

Translate

Translate
Jump to answer Jump to answer
Adobe Community Professional ,
Oct 13, 2020

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

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