开发者

Setting cursor to pointer over movieclip

开发者 https://www.devze.com 2023-03-30 01:26 出处:网络
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;

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

精彩评论

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