TypeError: Error #1009: the attribute or method referenced by the null object cannot be accessed,

Source: Internet
Author: User

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 ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.