Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript (http://www.flasher.ru/forum/forumdisplay.php?f=5)
-   -   Drag для 3D (http://www.flasher.ru/forum/showthread.php?t=43960)

Garage 14.03.2003 20:25

Drag для 3D
 
В исходниках нашел 3D эфект (с) УильямБрэдберри.
Код:

onClipEvent (load) {
    this.stop();
    tFrames = this._totalframes;
    speed = 25;
}
onClipEvent (mouseMove) {
    xmouseI = _xmouse;
    peremotka += ((xmouseI-xmouseII)/speed);
    if (peremotka>tFrames) {
        peremotka -= tFrames;
    }
    if (peremotka<1) {
        peremotka += tFrames;
    }
    this.gotoAndStop(Math.floor(peremotka));
    xmouseII = xmouseI;
    updateAfterEvent();
}

Внимание вопрос! Как заставить всю эту красоту работать по onDrag?

Помогите пожалуйста. Второй час мучаюсь ...


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

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