The prefix "MX" for element "mx: script" is not bound.

Source: Internet
Author: User

The error indicates that the element "mx: script" is not restricted.

 

If the style component is added when you create a new component in flex, an error occurs.

(Error details)

<? XML version = "1.0" encoding = "UTF-8"?>
<Mx: style>
. Listtitle
{
Fontsize: 20;
Color: #339933;
}
</MX: style>

<Mx: DataGrid xmlns: MX = "http://www.adobe.com/2006/mxml"
Verticalgridlinecolor = "#666666"
Verticalgridlines = "true"
Editable = "false" enabled = "true" fontfamily = "verdana" headerstylename = "listtitle" fontsize = "12"
Showheaders = "true" paddingbottom = "0" paddingtop = "0" headerheight = "30"
Bordersides = "Left right bottom top"
Borderstyle = "solid"
Horizontalscrollpolicy = "off"
Tooltip = "For more information, see" bordercolor = "#049604" borderthickness = "1" color = "#049604">
<Mx: columns>
<Mx: datagridcolumn datafield = "Resources" headertext = "related resources" textalign = "center"/>
</MX: columns>
</MX: DataGrid>

 

Solution: Set <mx: style>... </MX: style> placed between new components, that is, the preceding component <mx: DataGrid>... </MX: Within DataGrid>.

As follows:

<? XML version = "1.0" encoding = "UTF-8"?>
<Mx: DataGrid xmlns: MX = "http://www.adobe.com/2006/mxml"
Verticalgridlinecolor = "#666666"
Verticalgridlines = "true"
Editable = "false" enabled = "true" fontfamily = "verdana" headerstylename = "listtitle" fontsize = "12"
Showheaders = "true" paddingbottom = "0" paddingtop = "0" headerheight = "30"
Bordersides = "Left right bottom top"
Borderstyle = "solid"
Horizontalscrollpolicy = "off"
Tooltip = "For more information, see" bordercolor = "#049604" borderthickness = "1" color = "#049604">
<Mx: columns>
<Mx: datagridcolumn datafield = "Resources" headertext = "related resources" textalign = "center"/>
</MX: columns>

<Mx: style>

. Listtitle

{

Fontsize: 20;

Color: #339933;

}

</MX: style>

</MX: DataGrid>

 

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.