T010
11-29-2006, 02:22 PM
Why is it that the first function does work, and the second one doesn't?
Both .onMouseDown and .onRollOver are meant to be used with movieclips as far as I know..?
_root.submenu.button1.onMouseDown = function(){
trace("button1text");
}
_root.submenu.button2.onRollOver = function(){
trace("button2text");
}
--
Okay, the problem is, when I replace onRollOver with onMouseDown, I have both those functions.
They actually do work, but now, it seems as if both those functions are activated whenever I click somewhere.
The output windows outputs both "button1text" and "button2text" even if I click just on the button1 or button 2.
Even when I click on a random place on the movie, it still outputs both the texts..
What's the problem with this?
Both .onMouseDown and .onRollOver are meant to be used with movieclips as far as I know..?
_root.submenu.button1.onMouseDown = function(){
trace("button1text");
}
_root.submenu.button2.onRollOver = function(){
trace("button2text");
}
--
Okay, the problem is, when I replace onRollOver with onMouseDown, I have both those functions.
They actually do work, but now, it seems as if both those functions are activated whenever I click somewhere.
The output windows outputs both "button1text" and "button2text" even if I click just on the button1 or button 2.
Even when I click on a random place on the movie, it still outputs both the texts..
What's the problem with this?