![]() |
|
||||||||||
|
|||||
|
Регистрация: Sep 2005
Сообщений: 4
|
Привет!
Второй день бьюсь никак не могу побороть этот createTextField. Надо програмно создать TextField. Вот пример из справки: this.createTextField("my_txt", this.getNextHighestDepth(), 0,10, 300, 100); my_txt.border = true; my_txt.multiline = true; my_txt.wordWrap = true; var my_fmt:TextFormat = new TextFormat(); my_fmt.color = 0x00FF00; my_fmt.underline = true; my_txt.text = "This is my first test field object text."; my_txt.setTextFormat(my_fmt); работает, НО если я пытаюсь создать TF на новом МС текст не виден, хотя курсор мыши над невидимым TF меняется на "текстовый": this.createEmptyMovieClip("my_mc", 0); my_mc.createTextField("my_txt", my_mc.getNextHighestDepth(), 0,10, 300, 100); my_txt.border = true; my_txt.multiline = true; my_txt.wordWrap = true; var my_fmt:TextFormat = new TextFormat(); my_fmt.color = 0x00FF00; my_fmt.underline = true; my_txt.text = "This is my first test field object text."; my_txt.setTextFormat(my_fmt); Где ошибка? |
![]() |
Часовой пояс GMT +4, время: 01:50. |
|
|
« Предыдущая тема | Следующая тема » |
|
|