1、引用flex-iframe-1.5.1.swc
2、将html文件发布到iis下
3、引用:
<?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:flexiframe="com.google.code.flexiframe.*"
xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:supportClasses="com.esri.ags.skins.supportClasses.*" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
]]>
</fx:Script>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<flexiframe:IFrame id="iFrame" width="100%" height="100%"
label="Map"
source="http://10.19.1.54/html/test.html"
overlayDetection="true" borderVisible="false">
</flexiframe:IFrame>
</s:Application>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" xmlns:flexiframe="com.google.code.flexiframe.*"
xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:supportClasses="com.esri.ags.skins.supportClasses.*" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
]]>
</fx:Script>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<flexiframe:IFrame id="iFrame" width="100%" height="100%"
label="Map"
source="http://10.19.1.54/html/test.html"
overlayDetection="true" borderVisible="false">
</flexiframe:IFrame>
</s:Application>