Forum Moderators: open
text1.addEventListener(MouseEvent.ROLL_OVER, text1Over);
text1.addEventListener(MouseEvent.ROLL_OUT, text1Out);
function text1Over(event:MouseEvent):void{
text1.gotoAndPlay("over");
}
function text1Out(event:MouseEvent):void{
text1.gotoAndPlay("out");
}
However when I check the syntax, I get....
Scene=Scene 1, Layer=action, Frame=1: Line 4: '{' expected
function text1Over(event:MouseEvent):void{
Scene=Scene 1, Layer=action, Frame=1: Line 6: Unexpected '}' encountered
}
Any ideas?
[edited by: Rynman47 at 1:47 pm (utc) on July 19, 2008]