---
title: "html页面中嵌入flex生成的应用程序"
author: "speed847"
date: "2013-06-25T03:04:35Z"
tags: []
categories: ["Web前端"]
slug: "html-flex"
draft: false
lastmod: "2013-06-25T03:04:35Z"
id: 1893681
url: "https://speed847.iteye.com/blog/1893681"
---

[http://blog.chinaunix.net/uid-24337578-id-177302.html](http://blog.chinaunix.net/uid-24337578-id-177302.html)

 

# html页面中嵌入flex生成的应用程序

 

要写个关于Flex的文档，想要将flex的效果嵌入到一个HTML文件中，经过自己查找资料解决了这个问题，与大家分享下：

首先要在

在C:\\WINDOWS\\system32\\Macromed\\Flash\\FlashPlayerTrust目录下添加一个文件，比如：1.txt（文件名可任意起），文件内容为：“D:\\demo\\test\\”即项目的路径，当然也可以设置为“D:\\”

这其实是在增加可信的本地 SWF 文件，这样swf就可以访问本地资源了。

然后

将flex项目下bin-debug文件夹中的文件全部拷贝到与你html文档同级目录下

在生成的flex 项目名.html中将&lt;Link 开始到 &lt;/noscript&gt;中的源代码拷贝到你要在html文档中显示的地方。

大功告成！！！