AS3自定义鼠标光标很容易,在帮助中就有这样的代码:

var cursor:Sprite = new Sprite();
cursor.graphics.beginFill(
0x000000);
cursor.graphics.drawCircle(
0,0,20);
cursor.graphics.endFill();
addChild(cursor);

stage.addEventListener(MouseEvent.MOUSE_MOVE,redrawCursor);
Mouse.hide();

function redrawCursor(event:MouseEvent):void
{
    cursor.x 
= event.stageX;
    cursor.y 
= event.stageY;
}

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-12-10
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2021-12-03
  • 2022-01-27
  • 2022-12-23
  • 2022-02-08
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案