FORUMS: list search recent posts

1084: Syntax error: expecting identifier before semicolon

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
cynthia hokr
1084: Syntax error: expecting identifier before semicolon
on Aug 20, 2010 at 3:53:03 pm

Please help! I cannot get this script to work, I have tried everything. What identifier before the 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,,duration,true);
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);

Return to posts index

Pieter Helsen
Re: 1084: Syntax error: expecting identifier before semicolon
on Aug 20, 2010 at 4:51:37 pm

function shotglassFollow(event:MouseEvent):void
var shotglassTween:Tween=new Tween(shotglass,"x",Strong.easeOut,curShotglassXPos,,duration,true);
curShotglassXPos =;

The highlighted line contained an error...

Kind regards,

General notice: from now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved