2013-09-29 69 views
0

我是一個初學者在Flash我的動作腳本得到了一個錯誤3.0Flash動作腳本TweenLite的1084

我使用吐溫精簡版

我得到了錯誤1084:語法錯誤:逗號前預計冒號。

其對該行

TweenLite.to(balk_mc, 1, {x:141,35, y:balk_mc.y}); 

它說10號線和16

使用整個代碼IM是:

import flash.events.MouseEvent; 
import com.greensock.*; 
stop(); 



button1.addEventListener(MouseEvent.CLICK, button1_clicked); 
function button1_clicked(e:MouseEvent):void{ 
    gotoAndStop("page1"); 
    TweenLite.to(balk_mc, 1, {x:141,35, y:balk_mc.y}); 
} 

button2.addEventListener(MouseEvent.CLICK, button2_clicked); 
function button2_clicked(e:MouseEvent):void{ 
    gotoAndStop("page2"); 
    TweenLite.to(balk_mc, 1, {x:330,6, y:balk_mc.y}); 
} 

button3.addEventListener(MouseEvent.CLICK, button3_clicked); 
function button3_clicked(e:MouseEvent):void{ 
    gotoAndStop("page3"); 
    TweenLite.to(balk_mc, 1, {x:551, y:balk_mc.y}); 
    var number:Number = 1; 

next_btn.addEventListener(MouseEvent.CLICK, nextImage); 

checkNumber(); 
function nextImage(event:MouseEvent):void { 
//trace("next button geklikt!"); 
number++; 
loader.source = "images/tommorrowland"+number+".png"; 
checkNumber(); 
} 

previous_btn.addEventListener(MouseEvent.CLICK, previousImage); 

function previousImage(event:MouseEvent):void { 
//trace("previous button geklikt!"); 
number--; 
loader.source = "images/tommorrowland"+number+".png"; 
checkNumber(); 
} 

function checkNumber():void { 
next_btn.visible = true; 
previous_btn.visible = true; 
if(number == 4){ 
    next_btn.visible = false; 
} 
if(number == 1){ 
    previous_btn.visible = false; 
} 

} 
} 

button4.addEventListener(MouseEvent.CLICK, button4_clicked); 
function button4_clicked(e:MouseEvent):void{ 
    gotoAndStop("page4"); 
    TweenLite.to(balk_mc, 1, {x:551, y:balk_mc.y}); 
} 

回答

0

你已經寫141,35而不是141.35。這是一個打字錯誤。編碼語言中的數字是用一個點編寫的。您的代碼中也包含330,6