我是Flash新手,这是我第一次动手。我真的很震惊编译MediaElement在 Ubuntu 中。根据 build.sh
中的说明(来自 realgravity fork 分支)文件
compc
创建 swc
来自 fla
的文件.这是命令 ./flex_sdk_4.6/bin/compc -source-path . -output flashmediaelement.swc
但我得到了执行
Error: nothing was specified to be included in the library
flashmediaelement.swc
(5 个月大) mxmlc
构建“swf”mxmlc -strict=false -warnings=true ./FlashMediaElement.as -o ../../build/flashmediaelement-debug.swf -library-path+="$FLEXPATH/lib" -include-libraries+=./flashmediaelement.swc -use-network=true -headless-server -static-link-runtime-shared-libraries
构建成功并获得了 swf。但它不能正常工作,因为我使用了 5 个月大的
flashmediaelement.swc
. 现在我需要你的帮助来编译
FlashMediaElement.fla
创建flashmediaelement.swc
使用 compc
.我真的很感激任何帮助或提示解决这个问题。
最佳答案
used compc to create the swc file from fla
.fla 文件不是源代码。它类似于 Flash Professional 的项目文件。您将无法使用 Flex 工具(例如命令行编译器)对 .fla 执行任何操作。
我不相信 Flash Professional 以任何方式支持 Linux。更多信息 can be found in this question about compiling a .fla from the command line .
要从 .fla 创建 SWC,您必须在 Flash Professional 和 export the contents as a SWC 中打开 fla。 .还有一个 Flash Pro 插件,它允许您将单个库元素导出为 SWC,以便与 Flash Pro 一起使用。更多信息 process and workflow .
关于flash - 在 Ubuntu 中构建 MediaElement flash 组件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17724448/