合并Flash网站为一个可执行文件 [英] Merge flash site into one executable

查看:262
本文介绍了合并Flash网站为一个可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以某种方式合并Flash网站为一个可执行文件。

I need somehow to merge flash site into one executable.

站点包括: 的index.html 图片 声音 PDF文件 等等。

Site consists of: index.html images sounds pdfs etc.

在点击一个合并的文件,需要的index.html被打开。

After clicking on a merged file, index.html is needed to be opened.

这可能吗?

=====================================

=====================================

Adob​​e AIR的可能是这个有用的,但我只能创建安装可执行文件,也许就可以只创建可执行文件?

Adobe AIR might be useful for this, but I can only create setup executable, maybe it is possible to create just executable?

推荐答案

您可以打包任意数量的文件到AIR应用程序(虽然出口时间可能会大幅上升)。您不能创建'只是'可执行文件,因为AIR应用程序需要安装和HTMLLoader对象将需要的页面和图片单独的文件反正。基本上,所有你需要做的是:

You can pack any number of files into AIR app (although export time may rise substantially). You can't create 'just' executable, because AIR apps need to be installed and HTMLLoader will need separate files for pages and pictures anyway. Basically, all you need to do is:

  • 在与MX创建AIR:HTML为主要内容
  • 点MX:HTML到应用程序:/index.html
  • 确保站点文件嵌入大批进入安装程序(把它们放到SRC目录)

有关PDF文件,在浏览器中正常工作,用户需要安装Acrobat。 Flash内容在里面工作的mx:HTML。 更新:
隐藏所有文件从用户更难。我做了类似的事情,虽然,不是整个网站,但应用程序嵌入网页和链接。
所有的内容可以被包装成某种zip文件(而不是在EXE,甚至将本机AIR应用程序无法自定义其EXE包装。)您可以将每个文件,如果你愿意,甚至加密。问题是链接和文件(图片,样式和脚本)。
我解决问题的图片数据URI方案(见我的问题 - 自我回答了 - 这一点。 )我想其他的文件可以内嵌也是这样的。照片 为了使链接的工作,你需要听Event.LOCATION_CHANGE。新的位置会告诉那里的HTML控件的希望的去(这将无法找到页面),解压缩相应的页面,并将其设置为的htmlText。 所以,如果你真的想嵌入的一切,这就是我会做:

For pdf files to work in the browser, user need Acrobat installed. Flash content should work inside mx:HTML. Update:
Hide all files from user is harder. I did something similar though, not entire site, but application with embedded pages and links.
All your content can be packed into some zip file (not in exe, even native AIR application cannot customize its exe wrapper.) You can even encrypt each file if you wish. The problem is links and files (pictures, styles and scripts.)
I solved pictures problem with data URI scheme (see my question - self-answered - about this.) I think other files can be embedded this way too.
To make links working, you need to listen to Event.LOCATION_CHANGE. New location will tell where HTML control wants to go (it will not be able to find page), unzip corresponding page and set it as htmlText. So, if you really wish to embed everything, that's what I would do:

  • 包所有的文件到一个zip文件使用与非连续拉链访问某些库后解压(我用coltware的airxzip)
  • 请网页服务系统。这包括拆包页,扫描它用的文件(CSS,JS,图片),解压文件,将它们转换为Base64和嵌入到页面的数据:URI方案。如果你的文件是不是(或很少)页面间共享,你可以在包装前将其嵌入并使用原样。我不知道的Webkit通过此协议支持JavaScript,即使没有,你可以将其转换为文本基于脚本。

这篇关于合并Flash网站为一个可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆