PDA

View Full Version : [HELP] dropdown menu problem



hellohenric
March 28th, 2007, 09:17 AM
Hi,


This code makes the Movie clip go back and forward.
___________________________

on (rollOver, dragOver) {
_root.dmenuK.kk = true;
}
on (rollOut, dragOut, releaseOutside) {
_root.dmenuK.kk = false;
}

___________________________


But when I drag the mouse pointer over a button in the movieclip ti dissapears.

So I added this to the button actionscript:

______________________
on (release) {
gotoAndPlay ("Scene 2", 15);
}
on (rollOver, dragOver) {
_root.dmenuK.kk = true;
}
on (rollOut, dragOut, releaseOutside) {
_root.dmenuK.kk = false;
}
________________________


Flash says it okay, but can't get it to work..


Thanks
Henric

rabidGadfly
March 28th, 2007, 11:18 AM
You can't put a button in a movieclip that listens for mouse events. This one is covered frequently. Search the forums or look here for a solution:

http://www.rabidgadfly.com/?p=33

hellohenric
March 29th, 2007, 09:13 AM
Thanks for reply,

I got it to work!

this code:

on (release) {
_root.gotoAndStop("Personal");
}
on (rollOver, dragOver) {
_root.dmenuK.kk = true;
}
on (rollOut, dragOut, releaseOutside) {
_root.dmenuK.kk = false;
}


Henric