如何设置“文档类别”来自 Flash CS4 中的 SWC?

发布于 2024-09-03 14:29:55 字数 446 浏览 10 评论 0原文

我有一个 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 技术交流群。

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

发布评论

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

评论(2

指尖凝香 2024-09-10 14:29:55

我自己没试过。但也许,如果直接链接到 swc 不起作用,可能的解决方法可能是编写一个简单的不执行任何操作的类,该类仅扩展 swc 中的类并让您的 fla 将其用作文档类。

像这样的东西:

package {
    import your.package.Content;

    public class MainClass extends Content {

    }
}

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:

package {
    import your.package.Content;

    public class MainClass extends Content {

    }
}
简单爱 2024-09-10 14:29:55

确认在 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

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