`
alex09
  • 浏览: 977410 次
  • 性别: 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   
      }


分享到:
评论

相关推荐

    Boost.Python.ArgumentError: Python argument types in错误解决及Boost安装配置-附件资源

    Boost.Python.ArgumentError: Python argument types in错误解决及Boost安装配置-附件资源

    Reflector 7.3.0.18.rar

    1. **屏幕镜像**:通过Wi-Fi连接,Reflector可以将iOS、Android设备的屏幕实时投影到电脑屏幕上,无需物理连接。这对于展示应用、游戏或教学演示非常有用。 2. **多设备支持**:Reflector可以同时连接并显示多个...

    ArgumentError.md

    ArgumentError.md

    掌握Ruby的异常处理:优雅应对错误的艺术

    大部分常见的异常都是 `StandardError` 类的子类。例如: - `ArgumentError`:当函数参数不正确时抛出。 - `IOError`:当输入/输出操作失败时抛出。 - `TypeError`:当类型转换失败时抛出。 - `ZeroDivisionError`:...

    ip_as_int:IP地址-整数转换,对作为整数存储的ip地址属性的activemodel和activerecord支持

    IpAsInt IP地址-整数属性的ip属性的整数转换和... ip2int ( '192.168.0' ) # => ArgumentError: Invalid IP: need 4 parts IpAsInt . ip2int ( '192.168.0.s' ) # => ArgumentError: Invalid IP: illegal format IpAsI

    smart_engine:通用SmartCore功能

    SmartCore :: Engine· ... SmartCore::ArgumentError (继承自::ArgumentError ); SmartCore::FrozenError (继承自::FrozenError ); SmartCore::NameError (继承自::NameError ); SmartCore

    Ruby语言教程对Ruby语法的总结展示Ruby语法的基本概念和用法.docx

    raise ArgumentError, "Argument error occurred" rescue ArgumentError => e puts "Caught an argument error: #{e.message}" end ``` #### 七、文件操作 **基本操作:** - 使用 `File` 类来进行文件的读写...

    关于FLASH与后台通信问题

    ### 1. Flash Socket 通信机制 在Flash中,`Socket` 类提供了与服务器进行双向通信的能力。这种通信方式通常用于实时应用,例如多人在线游戏、即时通讯等场景。通过 `Socket` 类,Flash 可以发送和接收二进制数据。...

    撬动救援:每当出现问题时就启动撬动会话

    撬救 Ruby的超快速调试。 (请参阅 ) 介绍 pry-rescue是Ruby的“未处理异常中断”的实现。...ArgumentError : wrong number of arguments ( 2 for 1 ) from /home/conrad / 0 / ruby / pry - rescue / example

    swift安装笔记

    dd if=/dev/zero of=/srv/swift-disk bs=1024 count=0 seek=1000000 mkfs.xfs -i size=1024 /srv/swift-disk ``` 然后,在 `/etc/fstab` 文件中添加以下内容以挂载环路设备: ``` /srv/swift-disk /mnt/sdb1 ...

    调试日志1

    第一个错误是`ArgumentError: argument --batch_size: conflicting option string: --batch_size`。这个错误通常意味着命令行参数解析时出现了冲突。在启动程序时,确保没有重复指定`--batch_size`选项,或者检查你...

    采集

    采集类型检查集例type =... add ( :not_a_string )# => ArgumentError (:not_a_string must be a String)通用风格type = Stringcls = Collection :: Set [ type ]cls# => "Collection::Set::String"collection = cls .

    foghorn:在您的Ruby中添加一点Foghorn来克亨鸡

    福格霍恩 在您的Ruby中添加一点Foghorn来克亨鸡: pry ( main ) > Boy ....pry(main)> [1, 2].first(1, 2) ArgumentError: You' re way off , I say you ' re way off this time son! wrong number of argum

    ArgumentError(解决方案).md

    说反话-加强版pta

    argumentError(解决方案).md

    项目中碰到的,记录一下解决方案

Global site tag (gtag.js) - Google Analytics