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