Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Общие вопросы о Flash (не затрагивающие ActionScript) (http://www.flasher.ru/forum/forumdisplay.php?f=60)
-   -   зглаживание при скроле. (http://www.flasher.ru/forum/showthread.php?t=68492)

Dessano 29.08.2005 15:35

зглаживание при скроле.
 
Сделал скрипт,scroll onMouseOverr но скролл движится как то урывками.
Как сгладить скролл?

silin 29.08.2005 20:54

как сделал, так и движится, в смысле: показывай, чего сделал..

Dessano 30.08.2005 09:56

Вот что

scrollBox.upBtn.onRollOver = function(Void):Void{
container.onEnterFrame = function(Void):Void {
if(this._y >= (scrollBox._height-scrollBox.downBtn._height+10)-this._height){
this._y-=10;
}
}
}
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+20){
this._y+=10;
}
}
}

scrollBox.downBtn.onRollOut = function(Void):Void {
delete container.onEnterFrame;
}

silin 30.08.2005 18:37

поставь прирост по _y - поменьше, фпс-побольше..

Dessano 31.08.2005 11:41

Fps помогло. спосиб.


Часовой пояс GMT +4, время: 14:48.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.