`
alex09
  • 浏览: 976631 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

ArgumentError: Error #1063: Argument count mismatch Expected 0, got 1.

    博客分类:
  • Flex
阅读更多
I received this error when an event handler I created did not contain an expected parameter. Somehow the compiler missed it but an error was thrown in the browser. The fix was easy. I forgot to add in the event object. Adding that in fixed the problem.
  
  
directorySearch_txt.addEventListener(FocusEvent.FOCUS_OUT, directoryFocusOut);
      // this line generated no errors in flex but generated errors at run time
      public function directoryFocusOut():void {
           // do something   
      }
      // adding the event object cleared the error
      public function directoryFocusOut(event:FocusEvent):void {
           // do something   
      }


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics