---
title: "FLEX嵌入HTML或JSP"
author: "zwh910621"
date: "2010-11-20T17:41:30Z"
tags: []
categories: ["Web前端"]
slug: "flex-html-jsp"
draft: false
lastmod: "2010-11-20T17:41:30Z"
id: 818095
url: "https://javaheart88.iteye.com/blog/818095"
---

跟JAVA使用外部框架一样首先得下载JAR包，不过FLEX不是JAR包FLEX是SWC

下载地址：[http://code.google.com/p/flex-iframe/](http://code.google.com/p/flex-iframe/)

我这里下载的是flex-iframe-1.4.6

解压打开\\flex-iframe-1.4.6\\build

把flex-iframe-1.4.6.swc拷贝到libs下（如果是flex+j2ee+eclipse应该是flex\_libs）

在MXML使用方法：

```
<?xml version="1.0" encoding="utf-8"?>
<mx:Application 
	xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
	xmlns:google="http://code.google.com/p/flex-iframe/">

	<google:IFrame  source="http://zwh910621.iteye.com/" width="90%" height="90%"/>
</mx:Application>
```