![]() |
|
||||||||||
|
|||||
|
Регистрация: Apr 2002
Адрес: СПб
Сообщений: 288
|
Есть мувик на нем скрипт:
onClipEvent (load) { this.createTextField("mytext", 1, 0, 0, 270, 100); mytext.selectable = false; mytext.type = "dynamic"; mytext.multiline = true; mytext.wordWrap = true; mytext.text = "sdklj kshdlfhsd lksdjflk klsdjlj lkjdsi ioiurfgi .kjsdfkgoirfgj kjlkf"; prostotxt = new TextFormat(); prostotxt.font = "Arial Cyr"; prostotxt.size = 11; prostotxt.color = 0x00000f; prostotxt.bold = true; prostotxt.italic = false; prostotxt.underline = false; prostotxt.url = ""; prostotxt.target = ""; prostotxt.align = "left"; prostotxt.leftMargin = 0; prostotxt.rightMargin = 0; prostotxt.indent = 0; prostotxt.leading = 0; prostotxt.bullet = false; mytext.setTextFormat(prostotxt); overtxt = new TextFormat(); overtxt.underline = true; overtxt.color = 0x000000; prestxt = new TextFormat(); prestxt.color = 0x666666; } onClipEvent (enterFrame) { onRollOver = function () { mytext.setTextFormat(overtxt); }; onRollOut = function () { mytext.setTextFormat(prostotxt); }; onRelease = function () { mytext.setTextFormat(prestxt); trace("mytext.textColor "+mytext.textColor); _root.gotoAndPlay(10); }; trace("mytext.textColor "+mytext.textColor); } Подскажите, пожалуйста: 1.почему не работает trace("mytext.textColor "+mytext.textColor); 2.как зафиксировать цвет после onRelease |
![]() |
Часовой пояс GMT +4, время: 09:30. |
|
|
« Предыдущая тема | Следующая тема » |
|
|