Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript 1.0/2.0 (http://www.flasher.ru/forum/forumdisplay.php?f=93)
-   -   smth.smth.onRollOver не работает. Нужна помощь (http://www.flasher.ru/forum/showthread.php?t=146350)

tenoclock 05.11.2010 02:19

smth.smth.onRollOver не работает. Нужна помощь
 
Здравствуйте!

Вот код:
Код AS1/AS2:

ever.onRollOver = function(){
 
onEnterFrame = function () {
 
 
 
        ever.first._rotation += 0;
        if(ever.first._rotation >0 ) {
                ever.first._rotation = 0;
        }
        ever.second._rotation += 0.8;
        if(ever.second._rotation >18 ) {
                ever.second._rotation = 18;
        }
        ever.third._rotation += 1.6;
        if(ever.third._rotation >36 ) {
                ever.third._rotation = 36;
        }
        ever.fourth._rotation += 2.4;
        if(ever.fourth._rotation >54 ) {
                ever.fourth._rotation = 54;
        }
        ever.fifth._rotation += 3.2;
        if(ever.fifth._rotation >72 ) {
                ever.fifth._rotation = 72;
        }
        ever.sixth._rotation += 4;
        if(ever.sixth._rotation >90 ) {
                ever.sixth._rotation = 90;
        }
}
}
ever.onRollOut = function(){
 
onEnterFrame = function () {
 
 
 
        ever.first._rotation += 0;
        if(ever.first._rotation >0 ) {
                ever.first._rotation = 0;
        }
        ever.second._rotation -= 0.8;
        if(ever.second._rotation <0 ) {
                ever.second._rotation = 0;
        }
        ever.third._rotation -= 1.6;
        if(ever.third._rotation <0 ) {
                ever.third._rotation = 0;
        }
        ever.fourth._rotation -= 2.4;
        if(ever.fourth._rotation <0 ) {
                ever.fourth._rotation = 0;
        }
        ever.fifth._rotation -= 3.2;
        if(ever.fifth._rotation <0 ) {
                ever.fifth._rotation = 0;
        }
        ever.sixth._rotation -= 4;
        if(ever.sixth._rotation <0 ) {
                ever.sixth._rotation = 0;
        }
}
 
ever.first.onRollOver = function() {
        ever.first.gotoAndStop(2);
}
evert.first.onRollOut = function() {
        ever.first.gotoAndStop(1);
}
 
 
 
};

Не работает часть, где при наведении на мувиклип в мувиклипе должно перейти на новый кадр мувиклипа. Т.е. в этом моменте :
Код AS1/AS2:

ever.first.onRollOver = function() {
        ever.first.gotoAndStop(2);
}
evert.first.onRollOut = function() {
        ever.first.gotoAndStop(1);
}

С чем это может быть связано, и как исправить?

Спасибо за внимание

AzagThoth 05.11.2010 02:52

Это связано с тем, что Вы перекрыли события кнопочные вложенных клипов задав описание кнопочных событий для их родителей.

tenoclock 05.11.2010 02:59

Спасибо.
А как ещё обработать событие наведения мыши на дочерний клип?

udaaff 05.11.2010 03:11

Тема на несколько ступенек ниже http://www.flasher.ru/forum/showthread.php?t=146230


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

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