flex 使用iframe加载html 及实现思路
发布时间:2020-12-15 01:13:51 所属栏目:百科 来源:网络整理
导读:flex-iframe :http://code.google.com/p/flex-iframe/ 使用方法很简单,下载flex-iframe把swc加到libs中 然后直接通过IFrame标签使用,如 ?xml version="1.0" encoding="utf-8"?s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns
flex-iframe:http://code.google.com/p/flex-iframe/ 使用方法很简单,下载flex-iframe把swc加到libs中 然后直接通过<IFrame>标签使用,如 <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:code="http://code.google.com/p/flex-iframe/"> <fx:Declarations> <!-- Place non-visual elements (e.g.,services,value objects) here --> </fx:Declarations> <code:IFrame source="http://www.baidu.com" width="100%" height="100%"> </code:IFrame> </s:Application> 实现思路:? 在flash所在的html页中添加一个div层,这个层用于加载html,并将此层放置在flash上层遮住相应的flash组件区域,flash通过javascript与html交互。实现移动,放大等操作 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |