开发者

Actionscript 2 error if statement

开发者 https://www.devze.com 2023-04-11 23:54 出处:网络
I am trying to create a if statement, but I get this compolor error: \')\' expected Unexpected \'}\' encountered

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;
}


Did you try:

if (contentHolder.testerHolder._visible == true) {

The semicolon has nothing to do there, and you want a comparison operator in there, not an assignment.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号