1084: Syntax error: expecting identifier before semicolon.

cynthgrl

New Member
Please help! I cannot get this script to work, I have tried everything. What identifier before semicolon??????
If somebody knows what I need to do to fix this, I will be so thankful!



Here's the code:

import fl.transitions.Tween;
import fl.transitions.easing.*;

var curShotglassXPos:Number=btn1.x;

var duration:Number=1.5;
function shotglassFollow(event:MouseEvent):void{
var shotglassTween:Tween=new Tween(shotglass,"x",Strong.easeOut,curShotglassXPo s,event.target.x,duration,true);
curShotglassXPos;event.target.x;}
btn1.addEventListener(MouseEvent.ROLL_OVER,shotgla ssFollow);
btn2.addEventListener(MouseEvent.ROLL_OVER,shotgla ssFollow);
btn3.addEventListener(MouseEvent.ROLL_OVER,shotgla ssFollow);
btn4.addEventListener(MouseEvent.ROLL_OVER,shotgla ssFollow);
btn5.addEventListener(MouseEvent.ROLL_OVER,shotgla ssFollow);
 

PixelPusher

Super Moderator
Staff member
Remove the spaces in "curShotglassXPo s" and "shotgla ssFollow"
It should look like this:

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;

var curShotglassXPos:Number=btn1.x;

var duration:Number = 1.5;
function shotglassFollow(event:MouseEvent):void {
	var shotglassTween:Tween = new Tween(shotglass,"x",Strong.easeOut,curShotglassXPos,event.target.x,duration,true);
	curShotglassXPos;
	event.target.x;
}
btn1.addEventListener(MouseEvent.ROLL_OVER,shotglassFollow);
btn2.addEventListener(MouseEvent.ROLL_OVER,shotglassFollow);
btn3.addEventListener(MouseEvent.ROLL_OVER,shotglassFollow);
btn4.addEventListener(MouseEvent.ROLL_OVER,shotglassFollow);
btn5.addEventListener(MouseEvent.ROLL_OVER,shotglassFollow);
 
Top