How to position a text field (according to stage size) in adobe animate html5 canvas
Hello,
i have this code to create an input text field in adobe animate html5 canvas.but i can not to position it according to "height" and "width" of my stage.
can anybody help me and write how to set it in stage (my problem is with screen size! if i give it a position, in another sclae screen,it looks awful)?
Here are the code:
var d = document.createElement("input");
d.setAttribute("type","text");
// Attach element to CreateJS stage baraye Name
canvas.parentNode.appendChild(d);
var dcjs = new createjs.DOMElement(d);
dcjs.x =(stage.x)/2 ; // position element here doesnt work according to my stage
dcjs.y = (stage.y)/2; ;
stage.addChild(dcjs);
