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.