1067: spark. components: the target of the implicit mandatory command of NavigatorContent type value is non-related String, and the implicit io command

Source: Internet
Author: User

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.

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.