![]() |
|
||||||||||
|
|||||
|
[+6 09.06.11]
Регистрация: May 2007
Сообщений: 721
|
line=_root.createEmptyMovieClip("line",_root.getNextHighestDepth()); line.lineStyle(1,0xFFFFFF,100,false,"none","none",null,3); line.moveTo(0,Stage.height/2); line.lineTo(1,Stage.height/2); line.speed=1; line.onEnterFrame=function(){ if(this._width>=Stage.width){ delete this.onEnterFrame; this._width=Stage.width; }else{ this._width+=this.speed; this.speed++; } } Влево она не уходит - точно. смотрел Спасибо
__________________
www.haiatov.ru |
|
|||||
|
[+6 09.06.11]
Регистрация: May 2007
Сообщений: 721
|
Странно
Спасибо что проверил.
__________________
www.haiatov.ru |
|
|||||
|
Регистрация: Sep 2005
Сообщений: 950
|
незнаю в чем там собака порылась, предлогаю немного переделанный вариант вроди как нормально работает
line=_root.createEmptyMovieClip("line",_root.getNextHighestDepth()); line.lineStyle(2,0xFFFFFF,100,false,"none","none",null,3); line.moveTo(0,Stage.height/2); line.lineTo(1,Stage.height/2); line.speed=1; line.__width = 1; line.onEnterFrame=function(){ if(this._width >=Stage.width){ delete this.onEnterFrame; this._width=Stage.width; }else{ this.lineTo(this.__width,Stage.height/2); this.__width+=this.speed; this.speed++; } } |
![]() |
![]() |
Часовой пояс GMT +4, время: 07:58. |
|
|
« Предыдущая тема | Следующая тема » |
|
|