需要下载第三方组件flex-iframe
下载地址:http://code.google.com/p/flex-iframe/
把flex-iframe-1.x.x.swc文件复制到libs文件夹,使用的话,非常简单,下面是一个简单的例子:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?xml version=
"1.0"
encoding=
"utf-8"
?>
<s:Application xmlns:fx=
"http://ns.adobe.com/mxml/2009"
<s:layout>
<s:BasicLayout/>
</s:layout>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<mx:Panel height=
"100%"
width=
"100%"
layout=
"absolute"
>
</iframe:IFrame>
</mx:Panel>
</s:Application>
|