![]() |
скорость скролла
Сделал скролл on onMouseOver, как ускорить сам скроллинг?
Вот сам флаш. http://www.buddhism.ee/new/test.htm |
как же ты его сделал, если не знаешь, как ускорить???))))))))))))))))
|
Цитата:
scrollBox.upBtn.onRollOver = function(Void):Void{ container.onEnterFrame = function(Void):Void { if(this._y >= (scrollBox._height-scrollBox.downBtn._height)-this._height){ this._y--; } } } scrollBox.upBtn.onRollOut = function(Void):Void { delete container.onEnterFrame; } scrollBox.downBtn.onRollOver = function(Void):Void { container.onEnterFrame = function(Void):Void { if(this._y < scrollBox.upBtn._height+25){ this._y++; } } } scrollBox.downBtn.onRollOut = function(Void):Void { delete container.onEnterFrame; } |
Сразу бы так!
Вместо this._y--; Надо this._y-=10; Вместо this._y++; Надо this._y+=10; |
блин, ну и кодище для такой простоты
|
Цитата:
СПОСИБО. |
| Часовой пояс GMT +4, время: 16:38. |
Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.