Показать сообщение отдельно
Старый 06.07.2007, 13:49
Vidar вне форума Посмотреть профиль Отправить личное сообщение для Vidar Найти все сообщения от Vidar
  № 1  
Ответить с цитированием
Vidar
 
Аватар для Vidar

Регистрация: Feb 2007
Адрес: Moskow
Сообщений: 85
Отправить сообщение для Vidar с помощью ICQ
Cool TextFormat.color и др.

В справке:
Цитата:
color property

color:Object [read-write]

Language version: ActionScript 3.0
Player version: Flash Player 9.

Indicates the color of the text. A number containing three 8-bit RGB components; for example, 0xFF0000 is red, and 0x00FF00 is green. The default value is null, which means that Flash Player uses the color black (0x000000).
Код:
var tf:TextFormat=new TextFormat();

trace("tf.color is Number "+(tf.color is Number)); // выводит true

trace("typeof(tf.color) "+typeof(tf.color)); // выводит object

tf.color=0x000000;

trace("typeof(tf.color) "+typeof(tf.color)); // выводит number
Баг или так задумано ?