其实当用户在使用 PopUpManager 打开的某个组件外部单击时,会从该组件分派一个mouseDownOutside事件

监听该事件就能实现点击空白处关闭窗口的功能

this.addEventListener("mouseDownOutside",mouseDownOutside_Handler);
private function mouseDownOutside_Handler(event:Event):void
{
    PopUpManager.removePopUp(this);
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2021-08-16
  • 2021-09-12
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案