开发者

adding child on canvas and set it "on-top" when clicking the mouse

I need to add an UIComponent (Label for example) as a child on a canvas and I need to set it on-top (when user click on the label with the mouse, the target event will be the label and not the canvas)开发者_运维百科 I'm sure flash has a solution for that but I can't find it on the net. any help? Best regards. elad.


I'm not entirely sure I understand what "Set it on top" means.

If you want a Label to respond to mouse events, you may have to set the buttomMode property to true.

If you want to swap the Z-Order of different components in your canvas, you can use the swapChildren or swapChildrenAt methods.

If you want to the label to somehow become the parent of the canvas, and the canvas a child of the label, you have a long and difficult road ahead of you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜