Summary of "1120: Access properties XXX Not defined" error

Source: Internet
Author: User
Tags access properties
Summary of "1120: Access properties XXX Not defined" error

1. Scenario Description
1.1 The Flash Builder version used, as shown in the following figure:


1.2 There are two tool classes under the same name but different packages Systemutil:
One under the Com.ylzinfo.sysmanager package;
Another under the Com.ylzinfo.util package;
1.3 A tool class is now created Az01util one of the code uses the Systemutil class under the Com.ylzinfo.sysmanager package, and Az01util is placed under the Com.ylzinfo.util package, as shown in the following figure:

The com.ylzinfo.sysmanager.SystemUtil is imported into the Az01util, as shown below:

A method is used to Com.ylzinfo.sysmanager.SystemUtil, as shown in the following diagram:

1.4 Compile times error, as shown below:


2. Resolution process
When I encountered this error, I was confused because the reference to the class that had already been imported was why the error of finding the property was reported. If it is a Java program, it is not wrong to know which Java package the class used in the program comes from, but this error has been reported, which really gives me a headache. It doesn't make sense to say that the com.ylzinfo.sysmanager.SystemUtil and Com.ylzinfo.util.SystemUtil quotes are not clear, but I have declared the source of its citation at the beginning of the file. Alas, in many times the result of the compilation or the same, I really doubt that Flash Builder 4.1 a bug, forget it or look at the problems view of how to describe it, as shown below:


It seems that Flash Builder 4.1 really does not recognize the Util package and the Systemutil under the Sysmanager package, so I changed to:
I also do not import the class reference at the beginning of the file, as shown below:

Use the class name that contains the package name directly where you use it, as shown in the following illustration:

The result is still an error, as shown below:

Md. How also said COM undefined, crashed me.
Does the custom package name also have to be declared in the file header? Add the package declaration as shown below:

Again compiled, sure enough, the error is not, the following image:


3. Conclusion
Did I not understand the grammatical problems of flex? Or a bug in Flash Builder 4.1. I really can't understand Flashbuilder 4.1 with the idea of a Java compiler.


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.