Hello,
Is it possible to change one button state, when pressing on another button?
e.g.
btn1.onPress = function() {
?btn2.setMouseState(''Over'');
};
The above code does not work though.
setMouseState problem...The code you are using is not AS3, the argument you are using in the setMouseState should not be capitalized, and the setMouseState works for the BaseButton class, not the SimpleButton class if that's what you were after.
btn1.addEventListener(MouseEvent.MOUSE_DOWN, over2);
function over2(evt:MouseEvent):void {
btn2.setMouseState(''over'');
}
If you want to have control of buttons you create yourself, you should create them as movieclips.
No comments:
Post a Comment