1067: spark. components: the target of the implicit mandatory command of NavigatorContent type value is non-related String, and the implicit io command
1. Error description
The target of the implicit mandatory directive for multiple tags of this row:-workId-1067: spark. components: NavigatorContent type value is a non-correlated type String.
2. Error cause
<Fx: Script> <! [CDATA [import mx. controls. alert; protected function search_clickHandler (event: MouseEvent): void {var teacher: Teacher = new Teacher (); var workId: String = teacher. workId; Alert. show (workId) ;}]]> </fx: Script>
3. Solution
1067: the target of the implicit mandatory command for int type values is non-related type. What is this in String?
This means that you have assigned an int value to a string variable. If you use the String keyword for forced conversion, no error will be reported.
For example:
Var num: int = 3;
Var str: String;
Str = String (num );
1067: 1067: the target of the implicit Force Command for int type values is non-related flashgeom: ColorTransform
This should be an exception during type conversion. That is to say, you assign an INT type variable to a value that cannot be converted to an INT.