Flex4.5 embedding Web pages in iframe form

Source: Internet
Author: User
Tags versions
1, first download flex-iframe-1.5.1.zip (can choose another version), download address:

Https://github.com/flex-users/flex-iframe/downloads

Unzip, copy iframe.as, iframeexternalcalls.as to your flex project, and note that the package path to the as file is modified according to the package path.

2. Write code

<common:iframe id= "Footer" source= "http://localhost:8080/include/footer.jsp" width= "100%" height= "100%" Horizontalcenter= "0" verticalcenter= "0"/>

Note: Common:iframe, because Iframe.as, Iframeexternalcalls.as's package path is saved as Com.xxxx.xxxx.common, and then, when writing the code, the direct input iframe is automatically output using the FLASHBUILDER4.5 encoding hint function.


Attention:

A modify package names for two classes

b iframe.as, iframeexternalcalls.as class used in the

Flexgloabls.toplevelapplication only used in more than 4.5 versions, the original application.application is used in previous versions, the version above 4.0 is not.

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.