在actionscript中模拟吸管
我正在使用 Actionscript 创建一个 Illustrator 插件,我希望一旦鼠标离开插件窗口并位于 illustrator 文档中,它就会记录鼠标位置并使用 getPixel() 获取这些位置中的像素值,但是问题是,如果光标离开舞台,我无法获取鼠标位置,那么这个问题有解决方案吗?或者根本无法完成?
I'm creating an Illustrator plugin using Actionscript and I wanted that as soon as the mouse leaves the plugin window and is in the illustrator document it would record the mouse positions and get the value of the pixel in these positions using getPixel() but the problem is that I can't get mouse position if the cursor leaves the stage, so is there a solution for this problem or it just can't be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
做不到。您所能做的就是监听
Event.MOUSE_LEAVE
,但这对您的情况没有帮助。Can't be done. All you can do is listen for
Event.MOUSE_LEAVE
, but that isn't going to help you in your situation.