我是靠谱客的博主 慈祥猎豹,这篇文章主要介绍AS3编译,现在分享给大家,希望可以做个参考。

<?xml version="1.0" encoding="UTF-8"?>
<flex-config>
 
<compiler>
<keep-generated-actionscript>false</keep-generated-actionscript>
<allow-source-path-overlap>true</allow-source-path-overlap>
<debug>false</debug>
<optimize>true</optimize>


<define>
<name>CONFIG::release</name>
<value>true</value>
</define>
<define>
<name>CONFIG::ENGLISH</name>
<value>false</value>
</define>
<define>
<name>CONFIG::SHUIHU</name>
<value>true</value>
</define>
<define>
<name>CONFIG::TAIWAN</name>
<value>false</value>
</define>

<library-path>
<path-element>D:ResouresManagerReleaseVersionbinsdk4.6frameworkslibsauthoringsupport.swc</path-element>
<path-element>D:ResouresManagerReleaseVersionbinsdk4.6frameworkslibscore.swc</path-element>
<path-element>D:ResouresManagerReleaseVersionbinsdk4.6frameworkslibsosmf.swc</path-element>
<path-element>D:ResouresManagerReleaseVersionbinsdk4.6frameworkslibstextLayout.swc</path-element>
<path-element>D:ResouresManagerReleaseVersionbinsdk4.6frameworkslibsplayer11.1playerglobal.swc</path-element>
</library-path>
 
<source-path>
<path-element>C:UsersAdministratorDesktopTaiWanVersionComp_Shuihusrc</path-element>
<path-element>C:UsersAdministratorDesktopTaiWanVersionShuiHusrc</path-element>
<path-element>C:UsersAdministratorDesktopTaiWanVersionShuiHuLoadersrc</path-element>
</source-path>
</compiler>

<warnings>false</warnings>
<static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
<output></output>

</flex-config>


上面为编译配置文件config_flex.xml 

注:编译需要添加SDK bin到环境变量中

配置文件中<output></output>可以填写路径输出swf 也可以在运行cmd的时候指定

下面为编译命令:

command = "mxmlc -load-config D:\config_flex.xml D:\ShuiHuLoader\src\ShuiHuLoader.as -output D:\ShuiHuLoader.swf"

os.system(command)


如果mxmlc -help 出现could not find jvm 需要手动把sdk下的jvm.config 中的java.home= 同一sdk目录下的jre路径输入

如果py调用命令不成功 cmd调用成功 则需要mxmlc.exe的绝对路径 如果路径出现空格 需要用双引号搞起来


最后

以上就是慈祥猎豹最近收集整理的关于AS3编译的全部内容,更多相关AS3编译内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(124)

评论列表共有 0 条评论

立即
投稿
返回
顶部