![]() |
|
||||||||||
|
|||||
|
Регистрация: Oct 2003
Сообщений: 6
|
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, время: 23:17. |
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | |
| Опции просмотра | |
|
|