Greetings:
I am trying to create a button (soon to be buttons) where I'd like to control what happens on rollout off the button. For example, my button is a simple rectangle. If I rollOff either the left, Top , or right side of the button, I want to go to another frame. If I rolloff the bottom, I want to remain in the current frame.
I thought I could use _xframe and _yframe to manage this in the following way...
button1 - button name
the upper left coords within the movie is x,y
the size of the button is x1 wide, y1 tall
on (rollOut) {
if (button1._xmouse < x || button1._xmouse > (x+x1) || button1._ymouse < y ) {
gotoAndStop (1);
} else {
stop ();
}
}
However, this is not working. I have just started to use ActionScript, so if I am missing something elementary, please be gentle.
Thanks,
Steve
I am trying to create a button (soon to be buttons) where I'd like to control what happens on rollout off the button. For example, my button is a simple rectangle. If I rollOff either the left, Top , or right side of the button, I want to go to another frame. If I rolloff the bottom, I want to remain in the current frame.
I thought I could use _xframe and _yframe to manage this in the following way...
button1 - button name
the upper left coords within the movie is x,y
the size of the button is x1 wide, y1 tall
on (rollOut) {
if (button1._xmouse < x || button1._xmouse > (x+x1) || button1._ymouse < y ) {
gotoAndStop (1);
} else {
stop ();
}
}
However, this is not working. I have just started to use ActionScript, so if I am missing something elementary, please be gentle.
Thanks,
Steve