我正在为我的个人网站创建简单的点击和滚动以用于将来的菜单。我有一个盒子,我把它叫做thing_mc,我有三个位置。我有下一个和prev。将控制thing_mc位置的按钮。我正在使用TweenLite为thing_mc设置动画,如果这有所作为。AS3编译器错误1083:使用else语法的问题
我得到一个1083错误(...其他意外)和(... rightparen是意外)。
谁能告诉我为什么以及如何解决这个问题?
感谢
import gs.TweenLite;
next_mc.addEventListener(MouseEvent.CLICK, nextListener);
prev_mc.addEventListener(MouseEvent.CLICK, prevListener);
//prev_mc.visible = false;
function nextListener(event:MouseEvent):void
{
if(thing_mc.x == 400);
{
TweenLite.to(thing_mc, .5, {x:50, y:50});
}
else if //// i get error 1083 here (...else is unexpected)
{
TweenLite.to(thing_mc, .5, {x:-100, y:50}); //// i get error 1083 here (...rightparen is unexpected)
}
}
function prevListener(event:MouseEvent):void
{
if(thing_mc.x == -100);
{
TweenLite.to(thing_mc, .5, {x:400, y:50});
}
else if //// i get error 1083 here (...else is unexpected)
{
TweenLite.to(thing_mc, .5, {x:500, y:50}); //// i get error 1083 here (...rightparen is unexpected)
}
}
next_mc.buttonMode = true;
prev_mc.buttonMode = true;
嗨,感谢您的快速回复。 我去了其他{ 工作! – DwayneG 2009-10-28 06:58:17