flex sdk编译swc

flex compc 是.swc文件的编译程序
这里有很多编译选项
但flex sdk 为其提供了一个示例文件在frameworks文件夹 flex-config.xml 把他改改就可以

一份大致的编译配置文件

<?xml version="1.0"?>
<flex-config xmlns="http://www.adobe.com/2006/flex-config">
  <output>D:\cc\magic.swc</output>
  <use-network>true</use-network>
  <target-player>11.1</target-player>
  <warnings>true</warnings>
  
  <compiler>
    <external-library-path>
      <path-element>D:\tool\flex_sdk_4.6.0.23201B\frameworks\libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.swc</path-element>
    </external-library-path>
    <strict>true</strict>
    <source-path>
      <path-element>D:\百度云\m0\src</path-element>
    </source-path>
    <library-path append="true">
      <path-element>D:\百度云\m0\lib\fcsFL.swc</path-element>
    </library-path>
  </compiler>
  
  <include-classes>
    <class>bo.Link</class>
    <class>bo.MPE</class>
  </include-classes>

</flex-config>

可以在sublime text2里使用自动编译

在tool build System里添加一个新的编译命令文件

{
"cmd": ["D:/compiled.cmd"],
"encoding":"GB2312"
}

在complied.cmd 里写好编译命令

encoding -- 是cmd输出信息的编码  中文系统是 gb2312

原文地址:https://www.cnblogs.com/mattins/p/2754579.html