从FDT编译SWC文件

发布于 2024-08-30 23:54:20 字数 179 浏览 1 评论 0原文

我创建了一个库,我想将其编译为 SWC 文件,我尝试通过选择 FDT AS3 库作为运行设置在 FDT 中执行此操作,但最终得到的只是一个 0kb .swc 文件。有人知道我做错了什么吗?当我用谷歌搜索时,我也找不到太多东西,如果有人有一个关于如何做的快速演练,保存在你的书签或其他东西中,那就太好了!

非常感谢,
将要

I've made a library which I'd like to compile to an SWC file, I've tried to do this in FDT by choosing FDT AS3 Library as Run settings, but all I end up with is a 0kb .swc file. Does anybody know what I'm doing wrong? I can't find much when I google it either, if anybody has a quick walkthrough on how to do it saved in your bookmarks or something, that would be great!

Many thanks,
Will

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

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

发布评论

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

评论(2

情魔剑神 2024-09-06 23:54:20

您始终可以下载 flex sdx 并使用 compc(组件编译器)编译 SWC。该命令类似于:

path_to_flex_sdk\bin\compc -source-path source_path -output output_path\my_swc.swc -include-classes DocumentClass

path_to_flex_sdk 替换为您安装 sdk 的位置的路径,source_path 替换为源代码的路径,output_path与您想要放置 swc 的任何位置,以及 DocumentClass 与您的文档类的名称(应位于 source_path 指定的目录中)。

祝你好运!

You can always download the flex sdx and compile swc's with compc (component compiler). The command would look something like:

path_to_flex_sdk\bin\compc -source-path source_path -output output_path\my_swc.swc -include-classes DocumentClass

replacing path_to_flex_sdk with the path to wherever you installed the sdk, source_path with the path to your source code, output_path with wherever you want the swc placed, and DocumentClass with the name of your document class (which should be in the directory specified by source_path).

Good luck!

月亮是我掰弯的 2024-09-06 23:54:20

尝试在 SWC 启动器配置、编译器参数选项卡中手动添加源:

-include-sources={project}/src

Try to add sources manually in SWC Launcher configuration, Compiler arguments tab:

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