This content has been marked as final. Show 3 replies
asking 4 help ...
"run,ryan!" <email@example.com> wrote in message
> Right now I have a inner canvas within an outer canvas, and I set a mask
> the inner canvas and set mask.x = 0; mask.y =0;
> now... the canvas container is in the center of the page but the mask is
> the top-left corner of the page. When i tried to get the x,y coordinates
> inner canvas, it's 0,0 .I guess canvas is using automatic layout for it's
> visible children but absolute layout for it's mask.
> So my question is, how to set the position of the mask relative to it's
> container -- canvas, or just center the musk in the canvas.
when setting mask, we need to addChild the mask image, and the position of the mask depends on where the mask added to.