Форум Flasher.ru
Ближайшие курсы в Школе RealTime
Список интенсивных курсов: [см.]  
  
Специальные предложения: [см.]  
  
 
Блоги Правила Справка Пользователи Календарь Сообщения за день
 

Вернуться   Форум Flasher.ru > Архив Flasher.ru > Flash > ActionScript

Версия для печати  Отправить по электронной почте    « Предыдущая тема | Следующая тема »  
Опции темы Опции просмотра
 
Создать новую тему  
Старый 03.10.2003, 16:01
SchneiH2 вне форума Посмотреть профиль Найти все сообщения от SchneiH2
  № 1  
SchneiH2

Регистрация: Oct 2003
Сообщений: 6
По умолчанию Pull down menu, working with paths

First of all: Sorry for writing in English, however, please answer in Russian, it's ok.

I use the below code to generate a pull down menu. In advance I'd like to say that it works as I want except one thing:

The menu consists of two MC:
btn_hm1 (i.e. main menu) and Submenu1.
In the least are embedded some buttons with rollover effect (change o font color).

The point ist that the all pull down/up effects work properly, however, the embedded buttons of the Submenu1 are inoperational (rollover effect does not function).

I found out that it is obviously to do with the path definitions (if I change from _root to _parent or other the pull down effect does not work any more)

What is wrong?

Her comes the code:

targetOben = 140
targetUnten = 180
speed = 4


btn_hm1.onrollover = function(){

_root.onEnterFrame = function() {

Submenu1._y += (targetUnten-Submenu1._y)/speed;

}//onEnterFrame

} //function btn_hm1.onrollover => works properly!!!


btn_hm1.onRollout = function(){

if (!(Submenu1.hitTest(_root._xmouse, _root._ymouse,false))) {

_root.onEnterFrame = function() {

Submenu1._y += (targetOben-Submenu1._y)/speed;

}//onEnterFrame

}//if

}//function btn_hm1.onrollout => works properly!!!


Submenu1.onRollout = function(){

_root.onEnterFrame = function() {

Submenu1._y += (targetOben-Submenu1._y)/speed;

}//onEnterFrame

} //function Submenu1.onrollout => works for "pull up", buttons inoperational

I have also noticed, that without the least function (Submenu1.onRollout) the buttons work whereas the "pull up"of Submenu does not work when "rollout" the Submenu1-area.


Thank you in advance for the help.

Regards

SHJ

Создать новую тему   Часовой пояс GMT +4, время: 00:39.
Быстрый переход
  « Предыдущая тема | Следующая тема »  

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.


 


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


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