为了大型项目的新版本从 Flash 切换到 HTML5?

发布于 2024-12-09 15:20:50 字数 1277 浏览 1 评论 0原文

我们有一个拥有 1100 万用户的大型 Web 产品(嵌入第三方网站的小部件,现在添加 iOS/Android 应用程序)。我们的大部分核心界面都是用 ActionScript 2.0 编写的。我们计划发布一个改进的版本。我们现在面临着将其移植到 ActionScript 3.0 或用 HTML5 重写的选择。我们已经有大约 30% 的代码是用 AS 3.0 编写的。你能帮助我们做出这个决定吗?

HTML5

优点

  1. 面向未来
  2. 在 iOS 浏览器中工作
  3. 无需插件,可能加载速度更快
  4. 本机浏览器富文本渲染,包括拼写检查和复制/粘贴
  5. 吸引网站管理员(当代技术)

缺点

  1. 产品依赖于 WebSocket - 否标准尚未,在 IE 中不可用
  2. 高度自定义 UI,在所有浏览器中不一致
  3. 没有用于流捕获的视频/音频硬件交互
  4. 难以转换为 iOS 应用程序(例如需要混合应用程序,UIWebView 无法轻松调用函数 考虑到我们现有的代码库和技能,
  5. JavaScript 就像 AS 1.0,不如 AS 3.0 复杂
  6. 我们需要做更多的工作
  7. 将 JS 小部件比 Flash 小部件更难嵌入到第三方网站

Flash

优点

  1. 已经有一些代码库、体验
  2. 视频/音频流捕获、套接字连接
  3. 适合第三方网站上的小部件
  4. 跨浏览器和平台的一致 UI
  5. 更容易在 iOS/Android 上的 AIR 应用程序中使用相同的代码库

缺点

  1. Adob​​e 的承诺Flash 不清楚
  2. Adob​​e 随意强迫开发人员经常改变技术,不可靠:AS1.0、AS2.0 已被逐步淘汰,文本布局框架在移动设备上不受支持并且正在被逐步淘汰,不清楚我们的 AS3.0 代码库是否3 年后仍然相关)
  3. Android 上对 Flash 的支持较差(例如,25% 的设备中的文本输入被破坏)
  4. 在 iOS 和 Metro 上的浏览​​器中不起作用,因此无论如何都需要精简版 HTML5 版本
  5. 在 Android 上的浏览​​器中速度较慢
  6. Public认为 Flash 已经过时了吗?

We have a large web product with 11 million users (widgets that are embedded into third party web sites, and now adding iOS/Android apps). Most of our core interface is written in ActionScript 2.0. We are planning to release a revamped version. We are now facing a choice of porting it to ActionScript 3.0 or rewriting it in HTML5. We already have about 30% of our code written in AS 3.0. Can you help us make this decision?

HTML5

Pros

  1. Future proof
  2. Works in browser in iOS
  3. No plugin required, presumably faster loading
  4. Native browser rich text rendering, including spell check and copy/paste
  5. Appealing to webmasters (contemporary technology)

Cons

  1. Product relies on WebSocket - no standard yet, not available in IE
  2. Highly custom UI, not consistent across all browsers
  3. No video/audio hardware interaction for stream capture
  4. Harder to convert into iOS apps (e.g. need hybrid apps, UIWebView cannot easily call functions in the native wrapper)
  5. JavaScript is like AS 1.0, less sophisticated than AS 3.0
  6. More work for us given our existing codebase and skills
  7. Harder to embed JS widgets into third party sites than Flash widgets

Flash

Pros

  1. Already have some code base, experience
  2. Video/audio stream capture, socket connection
  3. Good for widgets on third party websites
  4. Consistent UI across browsers and platforms
  5. Easier to use the same codebase for AIR apps on iOS/Android

Cons

  1. Adobe's commitment to Flash is unclear
  2. Adobe feels free to force developers to change technologies often, unreliable : AS1.0, AS2.0 have been phased out, Text Layout Framework is not supported on mobile and is being phased out, not clear if our AS3.0 codebase will still be relevant in 3 years)
  3. Shoddy support of Flash on Android (e.g. text input is broken in 25% of devices)
  4. Does not work in browser on iOS and Metro, so need a lite HTML5 version anyway
  5. Slower in browser on Android
  6. Public perception of Flash as obsolete?

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

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

发布评论

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

评论(2

物价感观 2024-12-16 15:20:50

我们面临着同样的情况,我真心希望Adobe能够带头回答这个问题;闪现还是继续前进?

我们有一个 AS2 Flash RIA(RIA,过去的一个短语?),它允许我们的客户从浏览器编辑他们的网站,类似于 Wix。尽管可以通过 ColdFusion 在 iOS 设备上查看这些网站(例如:dolcedesignsonline.com - 尝试在 IE 中然后在 iOS 浏览器中查看),我们想知道下一步该做什么。我们正处于 RIA 的 AS3 版本之中,尽管 HTML5 中的任何功能都无法与我们现在在 AS3 中享受的功能相媲美,但 AS3 会在未来实现这一目标吗?

我不认为 Adob​​e 会让 Flash 消亡。更合乎逻辑的下一步是让 Flash IDE 开源并免费向公众开放。我并不赞同这个想法,我也不认为这种情况会发生,但我相信这种情况早在 Adob​​e 完全关闭 Flash 的大门之前就会发生。

滴答作响……在某个时刻,我们只需要掷硬币即可。

约翰·格林

We are in an identical situation and I truly wish that Adobe would take the lead in answering this very question; Flash or move on?

We have an AS2 Flash RIA (RIA, a phrase from the past?) that allows our clients to edit their sites from their browser, similar to Wix. Although the sites are viewable on iOS devices via ColdFusion (example: dolcedesignsonline.com - try in IE then in an iOS borwser), we are wondering what to do next. We are in the middle of an AS3 version of our RIA and although nothing in HTML5 will ever come close to the functinality we now enjoy at our fingertips in AS3, is AS3 going to there down the road?!

I do not think that Adobe would just let flash die. A more logical next step would be make the Flash IDE open source and free to the public. I am not endorsing that idea and I do not see that happening but I believe that would happen long before Adobe would just close the doors on Flash altogether.

Tick tock... at some point we are just going to have to flip a coin.

John Glynn

骄傲 2024-12-16 15:20:50

我对您的观点的看法:

HTML5

优点

面向未来 - Flash 也是如此(您仍然可以在 FP11 中运行 AS1 影片)

在 iOS 浏览器中工作 - 但 webGL 需要 iAd,而画布会消耗电池,从这个意义上说,对实际 HTML5 功能的支持相当有限

不需要插件,大概加载速度更快 - 取决于加载的内容!

原生浏览器富文本渲染,包括拼写检查和复制/粘贴 - 优点,不确定 AIR 中是否支持这些功能

对网站管理员有吸引力(当代技术) - 取决于网站管理员,除了 Canvas/webGL 之外只是普通的旧 HTML/JS

缺点

产品依赖于 WebSocket - 不确定如何解决这个问题

高度自定义的 UI,在所有浏览器中不一致 - 这将永远是祸根网络的开发人员 - 如果您还没有,请研究一下 jQuery UI

没有用于流捕获的视频/音频硬件交互 - AFAIK 更正

更难转换为 iOS 应用程序(例如,需要混合应用程序,UIWebView 无法轻松转换)调用本机包装器中的函数) - 正确,但可以做到

Javascript 就像 AS 1.0,不如 AS 3.0 复杂
鉴于我们现有的代码库和技能,我们需要做更多的工作
将 JS 小部件嵌入第三方网站比 Flash 小部件更难 - JS 是一种非常酷的语言,但它并不适合构建需要许多人维护的大型应用程序,调试它绝对是个麻烦事。< /em>

Flash

优点

已经有一些代码基础、经验 - 代码可以组织成类,更容易维护和调试,AS3 还具有大多数出色的 JS 功能(闭包、对象、第一类函数),因为它是从中派生的。

视频/音频流捕获、套接字连接 - true

适合第三方网站上的小部件 - 不确定这有什么相关性对您来说,因为不完全确定您正在制作哪种类型的应用程序

跨浏览器和平台的一致 UI - 对我来说,这本身就是胜利!

更轻松地为 AIR 应用程序使用相同的代码库在 iOS/Android 上 - true,与以上

缺点

Adob​​e 对 Flash 的承诺尚不清楚 - 这是事实,但 Flash 播放器将存在数年,甚至数十年,然而,Stage3D 已为该平台注入了新的活力

Adobe 随意地强迫开发人员经常改变技术,不可靠:AS1.0、AS2.0 已被逐步淘汰,文本布局框架在移动设备上不受支持并且正在被逐步淘汰,不清楚我们的 AS3.0 代码库是否仍然存在相关 3年)- 这并不是真的,因为 Flash Player 为 Flash 中构建的所有内容提供旧版支持,现在在 AS1 中编码可能没有意义,但如果这样做,您仍然可以导出并在任何计算机上运行 Android 上对 Flash

的支持很差(例如 25% 的设备中的文本输入被破坏) - 这是主要缺点,我不确定 AIR 解决这些问题的效果如何,但在我的对其进行实验,这是我发现的唯一问题Android 上的 AIR 是针对密集图形的性能。

不适用于 iOS 和 Metro 上的浏览​​器,因此无论如何都需要精简版 HTML5 - 这可能是难以克服的,除非您可以说服您的客户使用应用程序(应该在这个词仍然存在争议的同时,不要太难),然后您可以使用 AIR - 和您现有的代码库!

Android 上的浏览​​器速度较慢 - 同样,您可能需要使用 AIR 选项,即使作为 Web/Flash 开发人员我从来没有过分热衷于它在移动浏览器中运行的想法,至少在当前技术下

是如此。公众是否认为 Flash 已经过时了? - 这真的很痛苦,但现在史蒂夫·乔布斯不再和我们在一起了,我认为很多歇斯底里的情绪已经平息,人们更加客观地看待并意识到他的“对 Flash 的想法”是出于一种欲望保护应用商店收入而不是事实,而且在开发速度、维护和跨浏览器支持方面,Flash 仍然远远领先于 HTML/5。如果您可以跨越移动桥梁 - 这很痛苦,除了使用 AIR 应用程序之外别无选择 - 我会选择 Flash。

My thoughts on your points:

HTML5

Pros

Future proof - this is also true of Flash (you can still run an AS1 movie in FP11)

Works in browser in iOS - but webGL requires iAds, and canvas knackers the battery, in that sense support for actual HTML5 features is pretty limited

No plugin required, presumably faster loading - depends what's loading!

Native browser rich text rendering, including spell check and copy/paste - good points, not sure what/if any support these have in AIR

Appealing to webmasters (contemporary technology) - depends on the webmaster, beside Canvas/webGL it's just plain old HTML/JS

Cons

Product relies on WebSocket - not sure how you could get around this

Highly custom UI, not consistent across all browsers - this will always be the bane of web developers - look into jQuery UI if you haven't already

No video/audio hardware interaction for stream capture - correct AFAIK

Harder to convert into iOS apps (e.g. need hybrid apps, UIWebView cannot easily call functions in the native wrapper) - correct, but it is possible to do

Javascript is like AS 1.0, less sophisticated than AS 3.0
More work for us given our existing codebase and skills
Harder to embed JS widgets into third party sites than Flash widgets - JS is a very cool language but it's not really suited to building large applications which will need to be maintained by many people, debugging it can be an absolute bitch.

Flash

Pros

Already have some code base, experience - code can be organised into classes, easier to maintain and debug, AS3 also has most of the standout JS features (closures, objects, 1st-class functions) as it is derived from it.

Video/audio stream capture, socket connection - true

Good for widgets on third party websites - not sure what relevance this has to you, as not entirely sure what kind of application you're making

Consistent UI across browsers and platforms - to me, this wins by itself!

Easier to use the same codebase for AIR apps on iOS/Android - true, related to above

Cons

Adobe's commitment to Flash is unclear - this is true, but Flash player will be around for years, if not decades, yet, Stage3D has breathed a new lease of life into the platform

Adobe feels free to force developers to change technologies often, unreliable : AS1.0, AS2.0 have been phased out, Text Layout Framework is not supported on mobile and is being phased out, not clear if our AS3.0 codebase will still be relevant in 3 years) - This isn't really true as the Flash Player provides legacy support for everything ever built in Flash, it might make no sense to code in AS1 now but if you do, you can still export and run on any machine with Flash Player.

Shoddy support of Flash on Android (e.g. text input is broken in 25% of devices) - this is the major drawback, I'm not sure how well AIR addresses these problems but in my experiments with it, the only issue I've found with AIR on android is performance for intensive graphics.

Does not work in browser on iOS and Metro, so need a lite HTML5 version anyway - This may be insurmountable unless you can persuade your clients to use an app (shouldn't be too hard whilst the buzz remains around the word), then you can use AIR - and your existing codebase!

Slower in browser on Android - again, you may need to go with the AIR option, even as a Web/Flash developer I've never been over-keen on the idea of it running in mobile browser, at least with current technology

Public perception of Flash as obsolete? - This has been a real pain, but now Steve Jobs is no longer with us I think a lot of the hysteria has died down, people are looking more objectively and realise that his 'thoughts on Flash' were motivated by a desire to protect App-store revenues rather than facts, and that in terms of development speed, maintenance and cross-browser support, Flash is still miles ahead of HTML/5. Provided you can cross the mobile bridge - and that is a pain, there's really no choice but to go with AIR apps - I'd go for Flash.

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