![]() |
|
||||||||||
|
|||||||
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | Опции просмотра |
|
![]() |
![]() |
|
|||||
|
Регистрация: Jan 2011
Сообщений: 200
|
всем привет)
создаю обычный текстфилд: fieldChat.text = "Введите текст"; fieldChat.width = 300; fieldChat.height = 40; fieldChat.x = 300; fieldChat.type = TextFieldType.INPUT; addChild(fieldChat); гуглил проблему, но ответ так и не нашел, помогите |
|
|||||
|
Проверьте этот код, у меня он работает:
package { import flash.display.Sprite; import flash.events.Event; import flash.text.TextField; import flash.text.TextFormat; import flash.text.TextFieldType; [SWF(width="320", height="240", frameRate="24", backgroundColor="#CCCCCC")] public class TestProject extends Sprite { private const MARGIN:int = 20; private var field:TextField; public function TestProject() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); field = new TextField(); field.border = field.background = true; field.backgroundColor = 0x222222; field.width = stage.stageWidth - MARGIN * 2; field.height = stage.stageHeight - MARGIN * 2; field.x = field.y = MARGIN; field.defaultTextFormat = new TextFormat("_typeWriter", 16, 0xEEEEEE); field.type = TextFieldType.INPUT; field.text = "Введите текст"; addChild(field); } } } |
|
|||||
|
Регистрация: Jan 2011
Сообщений: 200
|
нет, все также....
|
|
|||||
|
Регистрация: Jan 2011
Сообщений: 200
|
то-то и оно, что нет прозрачности...я уже находил решение для этого варианта
|
|
|||||
|
Регистрация: Jan 2011
Сообщений: 200
|
|
|
|||||
|
Linux?
__________________
Сам себе репортер |
|
|||||
|
Регистрация: Jan 2011
Сообщений: 200
|
|
![]() |
![]() |
Часовой пояс GMT +4, время: 13:04. |
|
|
« Предыдущая тема | Следующая тема » |
|
|