addchild don't get ahead of text components?

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);
alert(Bt.numChildren)
alert(this.bt18.numChildren)

asdfqewr.png

see the addchild behind the component how to pass it on?

Views

43

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
JosephLabrecque Adobe Community Professional , Oct 13, 2020
If you are using HTML5 Canvas text components - all components make use of the DOM and not Canvas so they are drawn in an element above the Canvas rendering. So any textinputs will always be above any Canvas content. 

Likes

Translate

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

Copy link to clipboard

Copied

If you are using HTML5 Canvas text components - all components make use of the DOM and not Canvas so they are drawn in an element above the Canvas rendering. So any textinputs will always be above any Canvas content. 

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