Flex ArgumentError: Error #1063: Argument count mismatch on ... :: ...

Flex ArgumentError: Error #1063: Argument count mismatch on ... :: ...
        .
        .
        .
         //改变状态
        this.addEventListener(MouseEvent.DOUBLE_CLICK,changeImg);
        .   
        .
        .
//改变
public function changeImg():void {
     arguments; //如果方法没有参数,则必须在方法中添加这个声明
    if(this.source == img0) {
        this.source = img1;
    } else {
            this.source = img0;
      }
        }

你可能感兴趣的:(Flex ArgumentError: Error #1063: Argument count mismatch on ... :: ...)