Question
PLEASE CAN YOU TELL ME WHAT THIS ERROR MEANS?
The script attached to my button reads:-
//This script takes the user to Scene 1 when opendoor is released
on(Release) = function (){
gotoAndStop("Scene 1", 1);
};
The errors in the Output Panel are:-
**Error** Scene=Scene 2, layer=door, frame=1:Line 2: '{' expected
on(Release) = function () {
**Error** Scene=Scene 2, layer=door, frame=1:Line 4: Statement must appear within on handler
};
I will be eternally grateful to anyone who can sort me out!!

//This script takes the user to Scene 1 when opendoor is released
on(Release) = function (){
gotoAndStop("Scene 1", 1);
};
The errors in the Output Panel are:-
**Error** Scene=Scene 2, layer=door, frame=1:Line 2: '{' expected
on(Release) = function () {
**Error** Scene=Scene 2, layer=door, frame=1:Line 4: Statement must appear within on handler
};
I will be eternally grateful to anyone who can sort me out!!