开发者

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

开发者 https://www.devze.com 2023-02-02 14:01 出处:网络
I am a beginner at scripting but have this error in my first script: \"1050: Cannot assign to a non-reference value.\"

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

精彩评论

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

关注公众号