Skip to main content
Participant
February 4, 2009
Question

Flash menu problems

  • February 4, 2009
  • 3 replies
  • 348 views
Hi all,
I've made a menu in Flash 8 using invisible buttons to go to different frames of the .swf, depending on mouse over and mouse release. My as coding is very simple:

buttonname.onRollOver = function(){
if (_currentframe = 1){
gotoAndStop (2)}
}

The file loads just fine onto frame 1, but when I roll the mouse over a button, doesn't matter which one, the file goes to frame 25 out of 30 and stays there. When I click on one of the buttons it goes to the proper frame, but as soon as I roll my mouse off of that button it returns to frame 25. Any suggestions? (or any way I could make this whole thing easier on myself?)

Thank you in advance.
This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
February 6, 2009
you have different button instances on frames 25 and 1. they may look the same and they may have the same instance name, but they're not the same.

to remedy, put the button on its own layer in frame 1. then extend that layers timeline to frame 25. if you need to change the frame 25 button's appearance and you want to do that using the authoring tools, create a keyframe at frame 25 and edit your button.
kglad
Community Expert
Community Expert
February 4, 2009
you're welcome.
Participant
February 6, 2009
Okay, so everything is working fine now, except for when I go to frame 25 now, and rollover one of the buttons, it makes 2 buttons not work at all. (no rollOver, Out or onRelease). When I go back to frame 1 they work again. Any help you can offer me would be great. Thank you.
kglad
Community Expert
Community Expert
February 4, 2009
use the double equal (==) to test for equality.
Participant
February 4, 2009
Awesome, that worked! Thanks!