private function initVol():void
   {
    vol = new Sprite();
    vol.buttonMode = true;
    vol.addChild(new pointClass());
    vol.x = 90;
    vol.y = 15;
    vol.addEventListener(MouseEvent.MOUSE_DOWN,down);
    addChild(vol);
   }

上面无法显示添加的内容

解决方法:添加(stage)

private function initVol():void
   {
    vol = new Sprite();
    vol.buttonMode = true;
    vol.addChild(new pointClass());
    vol.x = 90;
    vol.y = 15;
    vol.addEventListener(MouseEvent.MOUSE_DOWN,down);
    stage.addChild(vol);
   }

相关文章:

  • 2021-05-28
  • 2022-12-23
  • 2022-02-09
  • 2022-02-24
  • 2021-05-26
  • 2022-12-23
  • 2021-06-29
  • 2021-12-05
猜你喜欢
  • 2021-10-14
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-10
  • 2022-12-23
相关资源
相似解决方案