1. Error description
TypeError: Error #1009: Cannot access properties or methods referenced by an empty object.
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 reason
<?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 (e.g., services, 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="Check" click="search_clickHandler(event)" width="100%"
height="100%" fontSize="320"/>
</s:Panel>
<chart:Teacher width="50%" height="100%"/>
</mx:HBox>
</s:Application>
Var workId: String = the teacher. The workId. Label; The label value of the workId in the Teacher module could not be obtained
Here the application calls parameters in the module
3. Solutions
(1) Check whether the label of the module workId is empty
(2) Debug the ActionScript code
Read More:
- SpringBoot IntegratenRedis Annotations and access error: EL1008E: Property or field ‘getListMember‘ cannot be found on object of type
- VUE: Property or method “deleteFun“ is not defined on the instance but referenced during render. [How to Fix]
- How to Solve Show() error caused by empty data
- Error reported with decorator in vue: Parsing error: Decorators cannot be used to decorate object literal properties
- [Solved] TypeError: super(type, obj): obj must be an instance or subtype of type
- css-rcurlyexpected Error: css-rcurlyexpected at-rule, or selector expected, Do not use empty rulesets
- TypeError: ‘WebElement’ object is not iterable error
- [Solved] MongoDB Error: TypeError: Object of type ObjectId is not JSON serializable
- Taro Use React Hooks Error: TypeError: Object(…) is not a function
- [Solved] Postcss Error: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.
- Uniapp: TypeError: Cannot read property ‘apply‘ of undefined (H5 does not report an error, but the real machine runs with an error)
- Webpack packaging error TypeError: this.getOptions is not a function at Object.lessLoader
- [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- [Solved] WeChat development tools error: Argument 0 must be a buffer source or a WebAssembly.Module object
- [Solved] unesolved external symbol _imp_fprintf referenced in funciton _showerror
- [Solved] Browser Access Error: Request Header or Cookie too large
- [Solved] Error: ‘attrition‘ is not an exported object from ‘namespace:rsample‘
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- [Solved] Laravel Create Data Table Error: Syntax error or access violation: 1071 Specified key was too long