使用PhoneGap + HTML5和嵌入式Flash电影 [英] Use PhoneGap + HTML5 and an Embedded Flash Movie

查看:228
本文介绍了使用PhoneGap + HTML5和嵌入式Flash电影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以执行以下操作:

I wanted to know if it is possible to do the following:


  1. 使用HTML5,CSS和JavaScript构建移动应用

  2. 在应用程序的其中一个页面上嵌入Flash游戏(SWF)

  3. 使用PhoneGap进行换行,并在Android上部署iOS

  4. 保持Flash游戏的功能

  1. Build a mobile app using HTML5, CSS, and JavaScript
  2. Embed a Flash game (SWF) on one of the pages of the application
  3. Wrap with PhoneGap, and deploy on Android an iOS
  4. Keep the Flash game's functionality

我正在考虑为即将到来的移动项目做这个,并考虑我的选择。我可以在所有Flash中构建,或者我可以使用HTML5构建并只在一个页面上嵌入Flash。 HTML5将更快,更具成本效益,并且可以完成我对应用程序UI和其他所有内容的需求。问题是我需要将这个Flash游戏整合到网站中。这是否意味着我必须在Flash中构建整个应用程序才能实现此目的?

I am considering doing this for an upcoming mobile project, and considering my options. I can build in all Flash, or I can build using HTML5 and just embed the Flash on one page. HTML5 would be much faster and cost-effective, and could accomplish what I need for the app's UI and everything else. The thing is that I need to incorporate this Flash game into the site. Will that mean that I have to build the entire application in Flash in order to accomplish this?

谢谢

推荐答案

你是地球上最后一个听到Flash无法在iOS上运行的人吗?

Are you the last person on Earth to hear that Flash doesn't work on iOS?

嗯,我有新闻给你:Flash无法在iOS上运行; - )

Well, I have news for you: Flash doesn't work on iOS ;-)

您可以使用Adobe的CS5工具将您的Flash游戏编译为原生iOS应用程序(如果是您决定采用Flash路线)但无法在iPhone上显示SWF,无论其嵌入方式如何。

You can use Adobe's CS5 tools to compile your Flash game as a native iOS app (which is probably your best bet if you're determined to go the Flash route) but you can't display a SWF on an iPhone, regardless of how it is embedded.

使用PhoneGap嵌入SWF可能在Android上是一个半可行的解决方案(至少对于某些手机型号而言),但性能不太可能那么好,而且由于Adobe已经在手机上正式放弃了Flash,因此制作Android的Flash游戏并不是一个非常具有前瞻性的此时的策略。

Embedding the SWF using PhoneGap may be a semi-viable solution on Android (at least for some handset models), but the performance is unlikely to be that great, and since Adobe have officially abandoned Flash on the mobile, making Flash games for Android is not a very future-proof strategy at this point.

使用纯HTML5游戏开发尝试创建游戏会更好像 ImpactJS 这样的工具库 - 这些工具并不像你用Adobe那样丰富,但是跨平台的支持和未来的前景要好得多。

You'd be better off trying to create your game using a pure HTML5 game development library such as ImpactJS - the tools are not quite as rich as what you get with Adobe, but the cross-platform support and future outlook is much better.

这里有一个很好的表格,列出了不同的跨平台JS游戏引擎解决方案,有人放在一起: https://github.com/bebraw/jswiki/wiki/Game-Engines

Here's a nice table of different cross-platform JS game engine solutions that somebody put together: https://github.com/bebraw/jswiki/wiki/Game-Engines

这篇关于使用PhoneGap + HTML5和嵌入式Flash电影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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