Flex IFRAME Control

Source: Internet
Author: User

The following is a simple method to implement IFRAME in HTML on a flex page.

Steps:

1. Download the off-the-shelf materials https://github.com/flex-users/flex-iframe/downloads from this link

I got the latest flex-iframe-1.5.1.zip.

After decompression, two acriptscript class files can be found in the path of flex-iframe-1.5.1 \ sources \ library \ flex-IFRAME \ SRC \ com \ google \ code \ flexiframe

2. Store IFRAME. As and iframeexternalcals. As in the flex project. I will copy it to the class file.

3. Create a New mxml ApplicationProgram, Add the red partCodeYou can fill in the page to be displayed in source.

<? XML version = "1.0" encoding = "UTF-8"?>
<S: Application xmlns: FX = "http://ns.adobe.com/mxml/2009"
Xmlns: flexiframe = "http://code.google.com/p/flex-iframe"
Xmlns: S = "Library: // ns.adobe.com/flex/spark"
Xmlns: MX = "Library: // ns.adobe.com/flex/mx" minwidth = "955" minheight = "600"
Xmlns: IFRAME = "class. *">
<FX: declarations>
<! -- Place non-visual elements (such as services and value objects) Here -->
</FX: declarations>
<IFRAME: IFRAME id = "iframe" Source ="Http://www.baidu.com/"Width =" 100% "Height =" 100% "/>
</S: Application>

 

RelatedArticle: Http://hi.baidu.com/%D5%D4%B9%A7%DC%F8/blog/item/3c15728f0b5a22709e2fb4d1.html

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.