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