2011-04-22 69 views
0

我已經在Win7中設置了環境變量,以便通過提示編譯.as文件。通過Flex編譯.AS文件4

但它顯示了一些關於沒有FactoryClass的警告,所以我無法使用共享庫進行編譯。我如何編譯導入類和庫的文件?

我試圖用mxmlc file.as

感謝

回答

5
Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option. 

找到保存了Flex 4檔「框架」目錄下的flex-config.xml文件進行編譯,並更改以下從「假」到「真」:

<static-link-runtime-shared-libraries>false</static-link-runtime-shared-libraries> 
to --> 
<static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries> 

我在Linux機器上這裏,但是這也應該做的伎倆在Windows平臺上爲好。

乾杯!例如:

1

您可以將其添加到編譯時間選項中;

mxmlc -static-link-runtime-shared-libraries=true source.as