cmfx_2
03-25-2010, 08:11 PM
Sorry to bother with the super basic question. But I'm afraid it's preventing me from even getting off the ground.
Trying to get my flash site going, I've added my buttons (links). I go to add my eventlistening code:
4: stop();
5:
6: function goLandscape (e:MouseEvent):Void{
7: gotoAndStop(4);
8: }
9:
10: land_btn.addEventListener(MouseEvent.CLICK, goLandscape);
and I receive the error:
Line6: '{' expected
Line 8: Unexpected '}' encountered
I have tried giving my frame a proper label (naming the frame), have tried removing "Void" , have tried swapping location of function and function call.
I'm positive I have the function and listener coded properly. And I don't see any reason why this is happening. What is the problem??
Trying to get my flash site going, I've added my buttons (links). I go to add my eventlistening code:
4: stop();
5:
6: function goLandscape (e:MouseEvent):Void{
7: gotoAndStop(4);
8: }
9:
10: land_btn.addEventListener(MouseEvent.CLICK, goLandscape);
and I receive the error:
Line6: '{' expected
Line 8: Unexpected '}' encountered
I have tried giving my frame a proper label (naming the frame), have tried removing "Void" , have tried swapping location of function and function call.
I'm positive I have the function and listener coded properly. And I don't see any reason why this is happening. What is the problem??