开发者

Setting cursor to pointer over movieclip

I want to change cursor to pointer when I hover movieclip in the stage. I try this

MovieClip(this.myContainer.myStage.getChildAt(i)).buttonMode=true;
MovieClip(this.myContainer.myStage.getChildAt(i开发者_如何学运维)).useHandCursor=true;

But it's doesn't help... Can anyone suggest anything?


MovieClip(myContainer.myStage.getChildByName("myChild"+i)).buttonMode=true;


I find solution for it

[Embed(source='../assets/hand_cursor.png')]
private var _handIcon:Class;

And then I use

this.myContainer.cursorManager.setCursor(_handIcon,2,-3);

And it works fine)))

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜