Actionscript 2 if 语句错误
我正在尝试创建一个 if 语句,但出现此 compolor 错误:
')' expected
Unexpected '}' encountered
我的函数:
function hideThumbs():Void {
contentHolder.thumbHolder._visible = false;
if (contentHolder.testerHolder._visible = true;) {
contentHolder.testerHolder._visible = false;
} else {
}
//contentHolder.thumbHolder.alphaTo(0, buttonTime, menuTween, 0, function(){ moveThumbs("out"); });
//thumbsHidden = true;
}
I am trying to create a if statement, but I get this compolor error:
')' expected
Unexpected '}' encountered
My function:
function hideThumbs():Void {
contentHolder.thumbHolder._visible = false;
if (contentHolder.testerHolder._visible = true;) {
contentHolder.testerHolder._visible = false;
} else {
}
//contentHolder.thumbHolder.alphaTo(0, buttonTime, menuTween, 0, function(){ moveThumbs("out"); });
//thumbsHidden = true;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过:
分号在那里没有任何作用,并且您需要在那里使用比较运算符,而不是赋值。
Did you try:
The semicolon has nothing to do there, and you want a comparison operator in there, not an assignment.