要“打开”或“激活”SWF的自动化库,需要将有效的Flash Builder Pro许可证密钥编译到SWF中。如果您没有使用有效的FB Pro许可证编译SWF,您最终会看到“许可证不存在。试用版仅允许有限的记录”错误:
背景:我有Flash Builder 4.5的许可版本,而且我使用的是Flex SDK 4.1。观察以下示例中发生的情况:
示例#1 - 使用带有 4.1 SDK (http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4)FAILS的Flash Builder 4.5的许可版本构建我的项目以“打开”自动化库。参见Test41项目。
示例#2 - 使用带有 4.5 SDK 的Flash Builder 4.5的许可版本构建我的项目(预装了Flash Builder 4.5)成功“打开”自动化库。参见Test45项目。
两种不同的结果。嗯,也许这与我的真实问题有关:
我的真实问题:我的SWF不是由Flash Builder直接编译,而是由ANT使用4.1 SDK中的MXMLC和COMPC编译器编译。这些编译器“读取”flex-config.xml文件。
所以,在flex-config.xml中我添加了这个:
<licenses>
<license>
<product>flashbuilder45</product>
<serial-number>xxxx-xxxx-xxxx-xxxx-xxxx-xxxx</serial-number> <!-- this is my 4.5 license key -->
</license>
</licenses>
那不起作用。所以我尝试了这里讨论的“派生”序列号(搜索“派生”这个词):How to properly define the Flashbuilder 4.5 Premium license for a maven flexmojo based build?
<licenses>
<license>
<product>flashbuilder45</product>
<serial-number>xxxxxxxxxxxxxxxxxxxxxxxx</serial-number> <!-- "Derived" sn number found in license.properties file -->
</license>
</licenses>
那也不起作用....我的猜测是我使用4.5序列号对抗4.1 SDK ......这并不好。
除了将我的SDK升级到4.5之外,任何人都有什么想法我可以做什么来“激活”我的SWF以使用Flash Builder 4.5许可证,ANT,4.1 SDK编译器和flex-config.xml处理自动化?
答案 0 :(得分:4)
以下是答案:
我在问题中没有提到这一点。
如果您正在使用 Flex 4.1 SDK ,并且想要“激活”您的SWF以进行自动化,制图等,那么您必须这样做:
OR
使用ANT,MXMLC,COMPC,flex-config编译您的SWF并将其添加到flex-config:
&LT;准许&GT;
&lt;许可证&gt;
&lt; product&gt; flashbuilder4 &lt; / product&gt;
&lt; serial-number&gt; xxxx-xxxx-xxxx-xxxx-xxxx-xxxx&lt; / serial-number&gt; &lt;! - 这是FB 4许可证密钥 - &gt;
&lt; / license&gt;
&lt; / licenses&gt;
如果您只有FB 4.5许可证密钥并且您使用的是SDK 4.1,我猜您别无选择,只能升级到SDK 4.5 +。