如何设置“文档类别”来自 Flash CS4 中的 SWC?
我有一个 SWC,其中有一个名为 Content 的类。我想将其设置为Flash中的“文档类”。但是,在 .fla 中设置 SWC 后,我收到一条错误消息,指出“在类路径中找不到文档类的定义,...”设置直接类文件夹工作正常,但我需要分发此 SWC 并且不想包含源代码。
如果某个类驻留在 SWC 中,是否可以将其用作文档类?
我发现一些链接似乎表明不能,但我需要找出答案肯定地。
http://balazs.sebesteny.com/document-class-from-swc/< /a>forums.adobe.com/thread/452045
I have an SWC with a class called Content. I want to set it as the "Document Class" in Flash. However, after setting up the SWC in the .fla, I am receiving an error message saying that "A definition for the document class could not be found in the classpath,..." Setting up the direct class folder works fine, but I need to distribute this SWC and do not want to include the sources.
Is it possible to use a class as the Document Class if it resides in an SWC?
I've found some links that seem to indicate no, but I need to find out definitively.
http://balazs.sebesteny.com/document-class-from-swc/
forums.adobe.com/thread/452045
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我自己没试过。但也许,如果直接链接到 swc 不起作用,可能的解决方法可能是编写一个简单的不执行任何操作的类,该类仅扩展 swc 中的类并让您的 fla 将其用作文档类。
像这样的东西:
Didn't try it myself. But maybe, if linking directly against the swc doesn't work, a possible workaround could be writting a simple do-nothing class that just extends the class in your swc and have your fla use it as the document class.
Something like:
确认在 cs5 中仍然损坏,并且子类解决方法也仍然有效。我已通知 adobe 的 Flash 创作团队工程师。我试图在这里获得解决此问题的支持:
http://www.moock .org/blog/archives/000304.html
confirmed still broken in cs5, and the subclass workaround also still works. i have informed a flash authoring team engineer at adobe. i am attempting to gain support for a fix to this issue here:
http://www.moock.org/blog/archives/000304.html