概述
<?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编译所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复