TypeError: Error #1009: 无法访问空对象引用的属性或方法
2014-10-09 23:30
453 查看
1、错误描述
2、错误原因
3、解决办法
TypeError: Error #1009: 无法访问空对象引用的属性或方法。 at FirstMap/search_clickHandler()[E:\Flash Builder\Map\src\FirstMap.mxml:17] at FirstMap/__search_click()[E:\Flash Builder\Map\src\FirstMap.mxml:30]
2、错误原因
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" xmlns:chart="chart.*"> <s:layout> <s:BasicLayout/> </s:layout> <fx:Script> <![CDATA[ import mx.controls.Alert; protected function search_clickHandler(event:MouseEvent):void { var teacher:Teacher = new Teacher(); var workId:String = teacher.workId.label; Alert.show(workId); } ]]> </fx:Script> <fx:Declarations> <!-- 将非可视元素(例如服务、值对象)放在此处 --> </fx:Declarations> <mx:HBox width="100%" height="100%" paddingBottom="10" paddingLeft="10" paddingRight="20" paddingTop="10"> <s:Panel width="50%" height="100%"> <s:Button id="search" label="查询" click="search_clickHandler(event)" width="100%" height="100%" fontSize="320"/> </s:Panel> <chart:Teacher width="50%" height="100%"/> </mx:HBox> </s:Application>
3、解决办法
相关文章推荐
- TypeError: Error #1009: 无法访问空对象引用的属性或方法。(解决)
- TypeError: Error #1009: 无法访问空对象引用的属性或方法
- mx:states包含mx:AddChild 在切换时提示错误"TypeError: Error #1009: 无法访问空对象引用的属性或方法"的解决方法
- Flex4 主程序调用模块方法报TypeError: Error #1009:无法访问空对象引用的属性或方法
- as3载入影片中TypeError:Error #1009:无法访问空对象引用的属性或方法
- flex TypeError: Error #1009: 无法访问空对象引用的属性或方法
- TypeError: Error #1009: 无法访问空对象引用的属性或方法
- TypeError: Error #1009: 无法访问空对象引用的属性或方法。
- Error #1009: 无法访问空对象引用的属性或方法 --问过的个问题 解决了 记录下
- RIA Test:try catch 对 Error #1009 (无法访问空对象引用的属性或方法)的处理
- Flash AS3中调试组件时出错------无法访问空对象引用的属性或方法。
- [原]AS3 无法访问空对象引用的属性或方法
- Flash AS3 无法访问空对象引用的属性或方法
- AS3 无法访问空对象引用的属性或方法
- flexlib SuperTabNavigator 无法访问空对象引用的属性或方法
- as3中无法访问空对象引用的属性或方法的问题
- ruby:TypeError: 对象不支持此属性或方法(<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolink)
- Ruby on rails(一) ruby:TypeError: 对象不支持此属性或方法(<%= stylesheet_link_tag 'application', media: 'all', 'd
- 2018/01/08JAVA 基础 / 接口与继承/Java关键词:变量引用 super 调用父类对象方法/构造方法【或者访问父类对象属性】的方式归纳
- js调用activeX插件 报异常:TypeError:对象不支持 属性方法