Flex_ActionScript3.0——编译警告【2】

代码 消息 说明 1009 %s '%s' has no type declaration. 不声明数据类型是一种个人编码风格偏好。函数的返回类型、参数或变量没有类型声明。但如果使用类型声明,编译器就可以编写出更为有效的代码并且在编译时检测到更多的错误。如果要在无法使用类型声明时得到提示,可以启用此警告。 1013 Variables of type %s cannot be undefined. The value undefined will be type coerced to %s before comparison. 只有类...
2010-03-02 16:43 | 阅读 916 次 | 评论 0 条

Flex_ActionScript3.0——编译错误【1】

代码 消息 说明 1000 Ambiguous reference to %s. 引用可能指向多项。例如,以下示例使用 rss 和 xml 命名空间,每个命名空间都为 hello() 函数定义了不同的值。trace(hello()) 语句无法确定使用哪个命名空间,因此返回此错误。private namespace rss;private namespace xml; public function ErrorExamples() { use namespace rss; use namespace xml; trace(hello...
2010-03-02 16:41 | 阅读 1827 次 | 评论 0 条
浏览568970次