Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Action script 2.0 (http://www.flasher.ru/forum/forumdisplay.php?f=49)
-   -   Пользовательские компоненты (http://www.flasher.ru/forum/showthread.php?t=65328)

toFlash 30.11.2004 16:52

Пользовательские компоненты
 
Не пойму как добавить к пользовательскому компоненту свою иконку, в хелпе нашел вот что:
Цитата:

Adding an icon
You can add an icon that represents your component in the Components panel of the Flash authoring environment.

To add an icon for your component:
Create a new image.
The image must measure 18 pixels square and be saved in PNG format. It must be 8-bit with alpha transparency, and the upper left pixel must be transparent to support masking.

:confused: Add the following definition to your component's ActionScript class file before the class definition:
[IconFile("component_name.png")]

Add the image to the same directory as the FLA file. When you export the SWC file, Flash includes the image at the root level of the archive.
Если кто занимался такими вопросами буду благодарен за разъячнения.
Может есть какие нить примеры и тд

Jlekc 01.12.2004 20:28

Вложений: 1
держи

toFlash 02.12.2004 14:05

Благодарствую это то что надо... )))


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

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