Highlighted

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?

Adobe Community Professional
Correct answer by JosephLabrecque | Adobe Community Professional

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. 

Views

18

Likes

Translate

Translate

Report

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

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?

Adobe Community Professional
Correct answer by JosephLabrecque | Adobe Community Professional

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. 

Views

19

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 13, 2020 0
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
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 13, 2020 1