One Flex error, one Flex Error

Source: Internet
Author: User

One Flex error, one Flex Error

1. Error description

TypeError: Error #1009: the attribute or method referenced by the null object cannot be accessed.
At com. gwtjs. components: DetailWindow/completeHandler () [D: \ Adobe Flash Builder 4 Installer \ demo \ src \ com \ gwtjs \ components \ DetailWindow. mxml: 25]
At com. gwtjs. components: DetailWindow/___ detailwindow_titlewindow?creationcomplete () [D: \ Adobe Flash Builder 4 Installer \ demo \ src \ com \ gwtjs \ components \ DetailWindow. mxml: 5]
At flash. events: EventDispatcher/dispatchEventFunction ()
At flash. events: EventDispatcher/dispatchEvent ()
At mx. core: UIComponent/dispatchEvent () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ core \ UIComponent. as: 12266]
At mx. core: UIComponent/set initialized () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ core \ UIComponent. as: 1577]
At mx. managers: LayoutManager/doPhasedInstantiation () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ managers \ LayoutManager. as: 759]
At mx. managers: LayoutManager/doPhasedInstantiationCallback () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ managers \ LayoutManager. as: 1072]


2. Error cause


3. Solution


FLEX Error

<? Xml version = "1.0" encoding = "UTF-8"?>

Flex error: Undefined access method

Var item_3: ContextMenuItem = new ContextMenuItem (".....");
Var a: ContextMenu = new ContextMenu ();
A. customItems. push (item_3 );
A. hideBuiltInItems (); I compile it here by changing the reference name.

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.