在为 Flash CS4 IDE 构建自定义面板时,是否有方法将回调附加到工作区事件?

发布于 2024-08-01 15:06:18 字数 202 浏览 4 评论 0原文

有没有办法让 Flash CS4 的自定义面板注册 IDE 事件?

我已经为 CS4 IDE 构建了一个自定义面板,现在我希望在舞台上的当前选择发生变化时获得回调。 这可能吗?

我的备用计划是让我的面板每秒多次轮询 IDE 来查找选定的对象,但这很弱,并且不会扩展到其他类型的事件,例如从舞台中删除对象或保存文件。

谢谢,马特

Is there a way for a custom panel for Flash CS4 to register for IDE events?

I've built a custom panel for the CS4 IDE, and now I'd like to get a callback anytime the current selection on the stage changes. Is this possible?

My backup plan is to have my panel poll the IDE for the selected object several times a second, but this is weak, and won't extend to other kinds of events like deleting objects from the stage or saving the file.

Thanks, Matt

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花桑 2024-08-08 15:06:18

在 CS4 中,是的,有一些事件。

不幸的是,没有selectionChangedEvent
购买也许你可以使用frameChangeddocumentChanged来解决一些问题。
DocumentChanged 可能比您需要的更频繁。 尝试一下frameChanged。
更多事件监听器位于 fl.addEventListener() 参考

另外,此处是一篇关于 fl events 和 swfPanel 的方便帖子。

祝你好运!

In CS4, yes there are a few events.

There is no selectionChangedEvent unforunately,
buy maybe you can work out something using frameChanged or documentChanged.
DocumentChanged might be more often than you need. Try on frameChanged.
More events are listener in the fl.addEventListener() reference.

Also, here is a handy post on fl events and swfPanel.

Goodluck!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文