Katzy
05-30-2003, 01:45 PM
This function will not work, and I do not know why. Can anyone help me out?
I am calling the function from a script on a movie clip like so:
onClipEvent (enterFrame) {
// call the buttonFUnction
buttonFunction();
}
This is my function which is on a button:
function buttonFunction(){
on(rollOver){
mouseOver = true;
trace("MouseOver is true");
}
on(rollOut){
mouseOver = false;
trace("mouseOver is false");
}
}
This is the error I get when I test the movie:
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: Statement must appear within on handler
function buttonFunction(){
Thank you,
Jeff
I am calling the function from a script on a movie clip like so:
onClipEvent (enterFrame) {
// call the buttonFUnction
buttonFunction();
}
This is my function which is on a button:
function buttonFunction(){
on(rollOver){
mouseOver = true;
trace("MouseOver is true");
}
on(rollOut){
mouseOver = false;
trace("mouseOver is false");
}
}
This is the error I get when I test the movie:
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: Statement must appear within on handler
function buttonFunction(){
Thank you,
Jeff