![]() |
Собственная папка для компонента в панели Сomponents
(Flex Builder 3 --> панель Components)
По умолчанию, Flex Builder все собственные(не встроенные) компоненты помещает в папку "Custom". Хочу сделать так, чтобы мой компонент помещался в какую-нибудь другую папку, например "MyProjectComponents". Можно ли это сделать и как? ... Перекопал хелпы по свик-библиотекам, метадате и манифест-файлам для compc -- узнал много чего интересного, но то что надо не нашёл:( |
Если найдешь отпишись плиз )) тоже исчу
|
Наконец-то выкопал:)
Ресурс: http://sudhahariharan.wordpress.com/...lex-builder-3/ When my team lead first told me about this, I had no idea what I had to do about it. Ofcourse, the first step was to depend on good old Google, but this time Google ditched me. I hardly found any good results nor did I get good replies from the various forums we have dedicated to Flex. All I could find was this bug in the bug database. After a lot of help from various people, this is the information that I could gather about the files manifest.xml and design.xml. To customize the Design view of Flex Builder for specific components we essentially need the above two files. As an example, if you want to have components to be listed under specific categories instead of the default behavior of Flex Builder that puts them under the custom tag, you could do the following. Have an XML file called design.xml that has a structure similar to Код:
<?xml version=”1.0″ ?>The manifest file basically defines what components would be present in the swc you are creating. For example, if I have only one component called TestButton in my library I would write a manifest.xml file Код:
<?xml version=”1.0″ encoding=”UTF-8″ ?>By doing the above, I was able to have a customized component view. One thing worth a mention is the tag called <mxmlProperties> within the design.xml file. This is useful if you want to show certain properties in the Flex Builder Standard Properties view. For example, Код:
<mxmlProperties>Код:
<defaultAttribute name=”showTitleBar” value=”false”/>Certainly, this is only very little of what one could do with these two files and Customizing Flex Builder without having to build any additional plugins. I wish there were many more blogs and some documentation that could throw some light onto this area. |
Library Projects and Customization in Flex Builder 3.
Для того, чтобы переделать Design View во Flex Builder 3 под собственный компонент/библиотеку нужны следующие файлы: manifest.xml и design.xml. К примеру, если вы хотите, чтобы компоненты отображались в отдельных категориях, а не в папке "Custom", в которую билдер помещает компоненты по дефолту: Нужен XML-файл с именем design.xml с примерно следующей структурой: Код:
<?xml version=”1.0″ ?>Файл manifest.xml по существу определяет какие компоненты будут представлены в создаваемом вами swc-файле. К примеру, если у меня в библиотеке есть только один компонент с именем "TestButton", файл manifest.xml будет следующим: Код:
<?xml version=”1.0″ encoding=”UTF-8″ ?>Ещё одна вещь, о которой следует сказать, это тег <mxmlProperties> в файле design.xml. Он нужен для того, чтобы в панели Flex Builder Standard Properties view отображались особенные свойства. К примеру: Код:
<mxmlProperties>Код:
<defaultAttribute name=”showTitleBar” value=”false”/>На данный момент более подробной информации найти не получилось, будем надеяться что компания "Adobe" в скором времени осветит эти вопросы более подробно. |
| Часовой пояс GMT +4, время: 04:03. |
Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.