TypeError: Error #1009: the attribute or method referenced by the null object cannot be accessed,
1. Error description
TypeError: Error #1009: the attribute or method referenced by the null object cannot be accessed. 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. Error cause
<? 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> <! -- Place non-visual elements (such as services and value objects) Here --> </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 = "query" click = "search_clickHandler (event) "width =" 100% "height =" 100% "fontSize =" 320 "/> </s: Panel> <chart: teacher width = "50%" height = "100%"/> </mx: HBox> </s: Application>
3. Solution
TypeError: Error #1010: the term is not defined yet, and no attribute is an Error. 'generally, when
Generally, undefined variables and methods are used, such:
Var a: uint = 0;
B = a + 3; this B is not defined, so an error occurs!
Btn. addEventListener (MouseEvent. CLICK, A); only method B in the Code does not have method A, so an error occurs!
Function B (e: MouseEvent): void {
}
Windows Internet Explorer prompt: TypeError: the object is missing
In "start"-"run", the dialog box for running is displayed.
Regsvr32 Shdocvw. dll
Regsvr32 Oleaut32.dll
Regsvr32 Actxprxy. dll
Regsvr32 Mshtml. dll
Regsvr32 Urlmon. dll
Regsvr32 browseui. dll
To fix IE ~ It can be copied one by one.
Or download a security guard 360 address ~
Www.onlinedown.net/soft/50671.htm
Good luck ~