开发者

AS3 1050: Cannot assign to a non-reference value. Error

I am a beginner at scripting but have this error in my first script:

"1050: Cannot assign to a non-reference value."

I'll give the reference 开发者_高级运维of the error.

var vLeft:Boolean = false
var vRight:Boolean = false

if (vLeft=false && vRight=false) //Location of the error

What am I doing wrong?


I think you are missing an = in your if condition:

var vLeft:Boolean = false
var vRight:Boolean = false

if (vLeft==false && vRight==false)
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜