PDA

View Full Version : 1084: Syntax error: expecting identifier before semicolon.



cynthgrl
20 Aug 2010, 10:52 AM
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);

jelly5131
25 Aug 2010, 08:42 PM
There's spaces in the last 5 lines in the word shotglass.