PDA

Просмотр полной версии : Not embedded файлы в SWC библиотеке


chudesno
22.11.2012, 18:10
Здравствуйте,

compc позволяет включать в библиотеку дополнительные файлы с помощью опции include-file

Подскажите, как можно использовать такие файлы в приложении, включающем такую библиотеку?

Они не embedded, поэтому классов для них нет..

Заранее спасибо =)

terbooter
22.11.2012, 18:54
Я бы посоветовал не вставлять этим ключом внешние ресурсы
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ad5.html
All classes and components must be statically linked into the resulting library. When you use the compc compiler to create the library, do not use the include-file option to add files to the library, because this option does not statically link files into the library.

Лучше сделать так
[Embed(source="logo.gif")]
public var imgCls:Class;
http://livedocs.adobe.com/flex/3/html/help.html?content=embed_4.html