![]() |
|
||||||||||
|
|||||
|
Регистрация: Apr 2001
Адрес: Moscow
Сообщений: 1,475
|
что у тебя такое javascript?
- если флэш, то в общем правильно. проблема действительно в том, что тебе нужно делать отдельный метод типа create, чтобы поиметь такое текстовое поле. proscroll.prototype.__proto__ = TextField.prototype; function proscroll() { this._x = 200; this._y = 200; this._width = 200; this._height = 200; } proscroll.create = function(thisObject, name, depth, initObject) { thisObject.createTextField(name, depth, 0, 0, 10, 10); var t_txt = thisObject[name] t_txt.__proto__ = this.prototype; for (var i in initObject) { t_txt[i] = initObject[i]; } this.call(t_txt); return t_txt; }; ставим на поле: proscroll.create(_root, "my_txt", 0, {text:"hello world"}); |
![]() |
Часовой пояс GMT +4, время: 21:05. |
|
|
« Предыдущая тема | Следующая тема » |
|
|