• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

addchild don't get ahead of text components?

Community Beginner ,
Oct 13, 2020 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

134

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
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 13, 2020 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. 

Votes

Translate

Translate
Community Expert ,
Oct 13, 2020 Oct 13, 2020

Copy link to clipboard

Copied

LATEST

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. 

Votes

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
community guidelines