[ActionScript] [ERROR]赋值运算符的左侧必须是变量或属性

时间:2016-07-18 18:46:52

标签: actionscript

我一直在开发Flash寄存器,但我收到的错误是Line 170 and Line 174 Left side of assignment operator must be variable or property.

以下是功能

 function nextView()
 {
   this.__set__currentViewIndex(++this.__get__currentViewIndex()); //Line 170
 } 
 function prevView()
{
   this.__set__currentViewIndex(--this.__get__currentViewIndex()); //Line 174
} 

1 个答案:

答案 0 :(得分:0)

Nvm我修好了。 this.__set__currentViewIndex(this.__get__currentViewIndex()+ 1);是修复