Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Flex (http://www.flasher.ru/forum/forumdisplay.php?f=84)
-   -   Not embedded файлы в SWC библиотеке (http://www.flasher.ru/forum/showthread.php?t=187677)

chudesno 22.11.2012 18:10

Not embedded файлы в SWC библиотеке
 
Здравствуйте,

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

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

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

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

terbooter 22.11.2012 18:54

Я бы посоветовал не вставлять этим ключом внешние ресурсы
http://help.adobe.com/en_US/flex/usi...9084-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.
Лучше сделать так
Код AS3:

[Embed(source="logo.gif")]
public var imgCls:Class;

http://livedocs.adobe.com/flex/3/htm...t=embed_4.html


Часовой пояс GMT +4, время: 18:44.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.