batch
06-20-2006, 11:19 PM
Hi, I've been racking my brain over this for too long and give up, any help would be appreciated, thanks.
all I want to do is have a menu hidden on the stage and when the mouse enters the x and y co-ordinates of the box that I have specified, the movieclip that contains the menu with it's buttons reveals itself by playing. So far I have the following code:
collectionmenubg.onEnterFrame = function() {
if (_xmouse<27 && _ymouse<17) {
collectionmenubg.gotoAndPlay(2);}
}
It's working, but the x and y co-ordinates don't seem to be reacting the way I want them too. I have the movie clip that contains the menu sitting at X=27 and Y=17, so logic would dicate that my script should be someting like:
if (_xmouse>27 && _ymouse>17)
but logic is not working, i can only get it to kinda work when I switch it around similar to the first example. and then I have to try and figure how to tell flash to put the movieclip back to frame 1 if I go past the width and height of the box's co-ordinates...
does this make any sense? i hope so, i could really use some help...
thanks
all I want to do is have a menu hidden on the stage and when the mouse enters the x and y co-ordinates of the box that I have specified, the movieclip that contains the menu with it's buttons reveals itself by playing. So far I have the following code:
collectionmenubg.onEnterFrame = function() {
if (_xmouse<27 && _ymouse<17) {
collectionmenubg.gotoAndPlay(2);}
}
It's working, but the x and y co-ordinates don't seem to be reacting the way I want them too. I have the movie clip that contains the menu sitting at X=27 and Y=17, so logic would dicate that my script should be someting like:
if (_xmouse>27 && _ymouse>17)
but logic is not working, i can only get it to kinda work when I switch it around similar to the first example. and then I have to try and figure how to tell flash to put the movieclip back to frame 1 if I go past the width and height of the box's co-ordinates...
does this make any sense? i hope so, i could really use some help...
thanks