Форум Flasher.ru
Ближайшие курсы в Школе RealTime
Список интенсивных курсов: [см.]  
  
Специальные предложения: [см.]  
  
 
Блоги Правила Справка Пользователи Календарь Сообщения за день
 

Вернуться   Форум Flasher.ru > Архив Flasher.ru > Flash > Общие вопросы

Версия для печати  Отправить по электронной почте    « Предыдущая тема | Следующая тема »  
Опции темы Опции просмотра
 
Создать новую тему  
Старый 29.07.2004, 05:24
mixey_lv вне форума Посмотреть профиль Отправить личное сообщение для mixey_lv Найти все сообщения от mixey_lv
  № 1  
mixey_lv
 
Аватар для mixey_lv

Регистрация: Nov 2003
Адрес: Ирландия
Сообщений: 179
По умолчанию help! movieclip tint

Kak programno izmenit' Tint?
u menja est' movieclip v kotorom nahoditsja kartinka. kak mne sdelat' programno 4to to tipa :
Movieclip->Properties->Color->Tint->70%

Eto help:Example
The following example sets the tint for the selected instance to red with an opacity value of 50:

fl.getDocumentDOM().setInstanceTint(0xff0000, 50);

----- no 4to tut napisanno, ja soooovsem ne ponal. mozhet kto znaet kak mne eto sdelat'?
put' do muvika _root.muvik

Старый 29.07.2004, 14:00
Dr. Flare вне форума Посмотреть профиль Отправить личное сообщение для Dr. Flare Найти все сообщения от Dr. Flare
  № 2  
Dr. Flare
 
Аватар для Dr. Flare

Регистрация: Jun 2004
Сообщений: 85
Из Хелпа!!!

Цитата:
Color.setTransform()
Availability
Flash Player 5.

Usage
my_color.setTransform(colorTransformObject)

Parameters
colorTransformObject An object created with the new Object constructor. This instance of the Object class must have the following properties that specify color transform values: ra, rb, ga, gb, ba, bb, aa, ab. These properties are explained below.

Returns
Nothing.

Description
Method; sets color transform information for a Color object. The colorTransformObject parameter is a generic object that you create from the new Object constructor. It has parameters specifying the percentage and offset values for the red, green, blue, and alpha (transparency) components of a color, entered in the format 0xRRGGBBAA.

The parameters for a color transform object correspond to the settings in the Advanced Effect dialog box and are defined as follows:

ra is the percentage for the red component (-100 to 100).
rb is the offset for the red component (-255 to 255).
ga is the percentage for the green component (-100 to 100).
gb is the offset for the green component (-255 to 255).
ba is the percentage for the blue component (-100 to 100).
bb is the offset for the blue component (-255 to 255).
aa is the percentage for alpha (-100 to 100).
ab is the offset for alpha (-255 to 255).
You create a colorTransformObject parameter as follows:

myColorTransform = new Object();
myColorTransform.ra = 50;
myColorTransform.rb = 244;
myColorTransform.ga = 40;
myColorTransform.gb = 112;
myColorTransform.ba = 12;
myColorTransform.bb = 90;
myColorTransform.aa = 40;
myColorTransform.ab = 70;

You can also use the following syntax to create a colorTransformObject parameter:

myColorTransform = { ra: '50', rb: '244', ga: '40', gb: '112', ba: '12', bb: '90', aa: '40', ab: '70'}

Example
This example creates a new Color object for a target SWF file, creates a generic object called myColorTransform with the properties defined above, and uses the setTransform() method to pass the colorTransformObject to a Color object. To use this code in a Flash (FLA) document, place it on Frame 1 on the main Timeline and place a movie clip on the Stage with the instance name my_mc, as in the following code:

// Create a color object called my_color for the target my_mc
my_color = new Color(my_mc);
// Create a color transform object called myColorTransform using
// the generic Object object
myColorTransform = new Object();
// Set the values for myColorTransform
myColorTransform = { ra: '50', rb: '244', ga: '40', gb: '112', ba: '12', bb: '90', aa: '40', ab: '70'};
// Associate the color transform object with the Color object
// created for my_mc
my_color.setTransform(myColorTransform);

Может пригодиться. Можно добиться похожего эффекта. А про Tint не знаю

Старый 29.07.2004, 14:04
Dr. Flare вне форума Посмотреть профиль Отправить личное сообщение для Dr. Flare Найти все сообщения от Dr. Flare
  № 3  
Dr. Flare
 
Аватар для Dr. Flare

Регистрация: Jun 2004
Сообщений: 85
Из этого же хелпа
Вложения
Тип файла: zip 11111.zip (9.9 Кб, 32 просмотров)

Старый 30.07.2004, 01:44
mixey_lv вне форума Посмотреть профиль Отправить личное сообщение для mixey_lv Найти все сообщения от mixey_lv
  № 4  
mixey_lv
 
Аватар для mixey_lv

Регистрация: Nov 2003
Адрес: Ирландия
Сообщений: 179
aeee ) pohozhe eto imenno to 4to ja prosil, spasibo bol'shoe!

Старый 30.07.2004, 18:19
mixey_lv вне форума Посмотреть профиль Отправить личное сообщение для mixey_lv Найти все сообщения от mixey_lv
  № 5  
mixey_lv
 
Аватар для mixey_lv

Регистрация: Nov 2003
Адрес: Ирландия
Сообщений: 179
i eshe vopros kak etim teper' upravljat'?
t.e. naprimer ja ho4u 4tobi moj mc vigljadel tak kak budto ja v ru4nuju postavil cvet #000000 s nasishennostju 70%
nu ili ljuboj drugoj cvet.
Spasibo

Создать новую тему   Часовой пояс GMT +4, время: 21:55.
Быстрый переход
  « Предыдущая тема | Следующая тема »  

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.


 


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


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