加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Flex4.5以IFrame形式嵌入网页

发布时间:2020-12-15 04:59:09 所属栏目:百科 来源:网络整理
导读:?1、?首先下载flex-iframe-1.5.1.zip (可选择其他版本),下载地址: https://github.com/flex-users/flex-iframe/downloads 解压,将IFrame.as、IFrameExternalCalls.as拷到自己的Flex工程中去,注意根据包路径修改as文件的包路径。 ? 2、编写代码 common:IF
?1、?首先下载flex-iframe-1.5.1.zip (可选择其他版本),下载地址:

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

解压,将IFrame.as、IFrameExternalCalls.as拷到自己的Flex工程中去,注意根据包路径修改as文件的包路径。

?

2、编写代码

<common:IFrame id="footer" source="http://localhost:8080/include/footer.jsp" width="100%"? height="100%" horizontalCenter="0" verticalCenter="0" />?

?

注:common:IFrame,是因为IFrame.as、IFrameExternalCalls.as的包路径保存为com.xxxx.xxxx.common,然后,编写代码时,直接输入IFrame利用FlashBuilder4.5的编码提示功能自动输出出来。


注意:

a? 修改两个类的包名

b? IFrame.as、IFrameExternalCalls.as类中用到

FlexGloabls.topLevelApplication只有4.5以上版本中才用到,原来的Application.application是之前版本用的,4.0之上的版本不用了。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读