Flash投影仪和Flash swf之间的区别

发布于 2024-08-02 11:19:53 字数 168 浏览 8 评论 0原文

发布 Flash 项目时,Flash 投影仪是否只是将 swf 文件和插件包装成可执行文件(win 为 .exe,mac 为 .app)?目标是该项目不在浏览器中运行,因此不依赖于浏览器/插件?

在可以运行的动作脚本方面是否存在更多差异?可以包含通常从外部加载的文件(视频等)...

谢谢!

When publishing a flash project, is a flash projector simply the swf file and plugin wrapped into an executable (.exe for win, .app for mac)? with the goal being that the project doesn't run in a browser and is therefore not browser/plugin dependent?

Are there more differences in terms of what actionscript can be run? can files that are usually loaded externally be included (videos etc)...

thanks heaps!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷…雨湿花 2024-08-09 11:19:53

你主要明白了。据我所知,独立播放器+你的swf = flash 项目。

我认为的一个区别是沙盒安全性。 Projector 版本的行为应与您的 swf 在 IDE 中的行为方式相同,这意味着不应用某些安全限制,因此您可以轻松测试您的 swf,而无需始终将结果上传到服务器上。

我想还有其他的,但我脑子里没有其他的想法。期待看到其他答案:)

You got the idea mainly. The standalone player+your swf = flash projects as far as I know.

One difference I can think is Sandbox Security. The Projector version should behave the way your swf behaves in the IDE, which means some security restrictions aren't applied so you can easily test your swf without uploading the result on the server all the time.

I guess there are others as well, but nothing else comes from the top of my head. Looking forward to see other answers :)

青衫负雪 2024-08-09 11:19:53

正如乔治所说,你基本上已经有了想法。投影仪是与可执行播放器封装在一起的 SWF 副本,以便可以在任何地方播放。

为了扩展 George 的答案,投影仪与 SWF 具有以下区别:

  • SWF 本质上仅限于访问外部网络或本地文件系统,但不能同时访问两者。投影仪可以读取本地文件,也可以建立网络连接。
  • 投影仪具有一些用于运行本地进程的基本功能。如果您创建一个名为“fscommand”的文件夹并将其放在与投影仪相同的目录中,则投影仪的内容可以运行该文件夹中的批处理文件。无法从 SWF 内部执行批处理文件或运行本地程序。
  • 我假设(但尚未测试)跨脚本限制不适用于投影仪 - 即加载外部 SWF 并运行方法或访问其中的变量。不过,我对 AS3 依赖此功能持谨慎态度,因为现在投影仪使用得不多,并且在 AS3 时代可能没有引起太多关注。

关于仅在投影仪中可用的 fscommand 功能,过去还存在一些其他差异,但我认为它们不适用于现代播放器。

As George said, you basically have the idea. A projector is a copy of your SWF wrapped together with an executable player, so that it can be played anywhere.

To expand on George's answer, projectors have the following differences from SWFs:

  • SWFs are inherently limited to accessing either the external network or the local file system, but never both. Projectors can read local files and also make net connections.
  • Projectors have some rudimentary functionality for running local processes. If you make a folder called "fscommand" and put it in the same directory as your projector, your projector's content can run batch files in that folder. There's no way to ever execute a batch file or run a local program from inside a SWF.
  • I assume, but haven't tested, that cross-scripting restrictions do not apply to projectors - i.e. loading in an external SWF and running methods or accessing variables inside it. I'd be wary of relying on this for AS3 though, as projectors aren't used so much these days, and may not have gotten much attention in the AS3 era.

There used to be a couple of other differences, regarding fscommand features that were only available in projectors, but I don't think any of them apply to modern players.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文