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)))
精彩评论