2011-03-30 54 views
2

我已經將項目從SDK 2.0.1移至3.5,因爲我使用的是TLF。這已經在flex builder 3 IDE中編譯好了,但是我現在正在使用命令行編譯來編譯我們的編譯系統,併爲所有標準Flex資源包獲取錯誤:共享資源,集合,容器,控件等。我可以看到這是由於改進在Flex 3中,SDK本地文件夾沒有這些.properties文件,但現在有一個framework_rb.swc。當從2.0.1升級時,在Flex 3中Compc「錯誤:無法找到資源包的源代碼」

任何人都可以告訴我如何獲得資源包使用3.5 SDK編譯?

該應用程序沒有對資源包或使用資源包元標籤做任何聰明的事情。

感謝,

奈傑爾

回答

0

我想這意味着框架資源包不能構建系統機器上找到。您應該使用copylocale命令創建它們。

When adding other locales, you must also include the framework resources for that locale. The en_US locale is already provided. For all other locales, you must create the framework resources. To create a locale’s framework resources, use the copylocale utility in the /sdk/bin directory. For Flash Builder, the copylocale utility is located in flash_builder_install/sdks/4.0.0/bin. You can only execute this utility from the command line.

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f2d.html

+0

謝謝,但我還沒有添加任何其他語言環境。我通過將flex 3資源包SWC文件包含在庫路徑中來解決編譯錯誤,因爲flex 2具有.properties文件。 – NJA 2011-04-05 09:22:18

+0

Config項是:<庫路徑> \t \t \t <路徑元件> \的SDK \ 3.5 < - - 當使用SDK 3.5包括在資源束的SWC直接以避免發生錯誤發現RB源!>。 0.12683 \ frameworks \ locale \ en_US \ framework_rb.swc \t \t 。\ sdks \ 3.5.0.12683 \ frameworks \ locale \ en_US \ rpc_rb.swc NJA 2011-04-05 09:22:48

+0

但是使用compc構建的SWF仍然以驗證錯誤1053:非法覆蓋null失敗。我正在使用目前建立的IDE。 – NJA 2011-04-05 09:27:03