有没有可以Flash播放器中运行一个网页浏览器? [英] Is there a webbrowser that can run inside Flash player?

查看:142
本文介绍了有没有可以Flash播放器中运行一个网页浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以创建将用作网络浏览器的Flash文件。所以基本上,闪光灯会像Internet Explorer或Firefox,也许就像里面装的iframe页面。

Can I create a flash file which will be used as web-browser. So basically, Flash will behave like Internet Explorer or Firefox, perhaps like loading a page inside iframe.

这可能吗?

推荐答案

不,这不是真的possible¹。 Flash是Flash播放器中显示它已经运行里面的 的浏览器。因此,即使是可能的,你需要运行一个浏览器来运行Flash Player来运行,然后你的网页浏览器。除此之外,Flash是不能够呈现HTML,因此它不能被用于直接显示网页内容。

No this is not really possible¹. Flash is displayed within the Flash Player which is already run inside a browser. So even if it was possible, you would need to run a Browser to run the Flash Player to then run your "webbrowser". In addition to that, Flash is not able to render HTML, so it cannot be used to display web content directly.

,唯一的选择是使用Adobe AIR为Flash内容而附带的WebKit浏览器在桌面运行环境。该浏览器框架也用于像Chrome和Safari浏览器。但是,如果所有应用程序应该做的是模仿浏览器这样做会给你任何好处。包括空气中的WebKit浏览器只包含最基本的模块,以及很多东西的人通常是从浏览器预计将无法使用。

The only alternative would be using Adobe AIR, the desktop runtime environment for Flash content which ships with the Webkit browser. That browser framework is also used for Browsers like Chrome and Safari. But doing that will give you no benefit if all your application is supposed to do is mimic a browser. The Webkit browser included in AIR only contains the most basic modules, and a lot things people usually expect from browsers won't be able available.

¹正如在评论中提到,它可能将有可能实现在ActionScript完整的HTML渲染引擎。然而,这需要很多的努力,特别是如果你想要得到的只是几乎什么现在的浏览器都能够做类似的良好覆盖。由于Flash是Flash播放器内运行,技术上是一个虚拟机,这本身运行嵌入browsers²,性能会相当糟糕不过。因此,从事实上除了它的理论上的可能,我不认为会有任何好处从这个方向努力。(又说:特别是没有,如果你只是想模仿了上述同样的原因,一个正常的浏览器)

¹ As mentioned in the comments, it probably would be possible to implement a full HTML rendering engine in ActionScript. It would however require a lot of effort, especially if you want to get just nearly a similar good coverage of what current browsers are able to do. Given that Flash is run inside of the Flash Player, technically a virtual machine, that itself runs embedded in browsers², performance would be rather bad however. So apart from the fact that it’s theoretically possible, I don’t think there will be any benefit from working in that direction (again: especially not if you just want to mimic a normal browser for the same reasons as above).

²之前另一个评论出现在这一点;闪光灯可以被编译成一个可执行程序,所以它不需要一个浏览器内运行。有多种方法可以做到这一点,但总体情况没有得到更好的方式。你会使用掉然后AIR(当时已经拥有了Webkit的渲染)更好。

² Before another comment comes up on this; Flash can be compiled to an executable, so it does not need to run inside a browser. There are various ways to do that, but overall the situation does not get better that way. You would be better off using AIR then (which then already features Webkit for rendering).

这篇关于有没有可以Flash播放器中运行一个网页浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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