Flex4 component _ FX: Declarations

Source: Internet
Author: User

 FX: declarations is used to define non-visual sub-objects of an application to indicate a property declaration. These Sub-objects are no longer limited to independent use under the application root directory.

Top-level packages are placed under FX. Such as data type, global function, and global constant.

It is legal to write in flex3 like this:
<XML id = "data_xml"/>, but it does not work in gumbo. The correct method requires <FX: declarations> to declare,
For example:
<FX: declarations>
<FX: Number ID = "D"> 100 </FX: number>
<FX: XML id = "data_xml" Source = "test. xml"/>
<Mx: httpservice id = "yahoonewsservice" url = "http://rss.news.yahoo.com/rss/mostemailed" method = "get"/>
<S: fade id = "F_e" alphafrom = "0.2" alphato = "1"/>
</FX: declarations>

Any invisible virtual object (unlike a label or other visual object, you must declare it before use. Of course, if you place a visual object in <FX: declarations> the statement does not report an error, but it cannot be seen.

Related Article

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.