在AIR应用程序中使用AS2 [英] Using AS2 in Air Application

查看:506
本文介绍了在AIR应用程序中使用AS2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作从Flash带来了游戏结束使用空气3.2到Android。我用来测试的SWF是一个AS2的SWF。

I'm working on bringing a game over from Flash to Android using Air 3.2. The SWF I am testing with is an AS2 SWF.

我用这个方法来获取SWF文件加载:<一href=\"http://www.mikechambers.com/blog/2008/08/18/anyone-using-actionscript-2-to-build-air-applications/#comment-13360\" rel=\"nofollow\">http://www.mikechambers.com/blog/2008/08/18/anyone-using-actionscript-2-to-build-air-applications/#comment-13360

I used this method to get the SWF file to load: http://www.mikechambers.com/blog/2008/08/18/anyone-using-actionscript-2-to-build-air-applications/#comment-13360

然而,当我打开应用程序时,SWF加载,但没有code ++工程。 这里的APK,因此您可以在行动中看到它。

However, when I open the app, the SWF loads, but no code works. Here's the APK so you can see it in action.

有没有像一个名为.swc或类似的东西我可以包括获得code的工作?

Is there like a .SWC or something similar I can include to get the code to work?

谢谢,
-Sandor

Thanks, -Sandor

推荐答案

您想干脆什么是不可能的移动。

What you want simply is not possible on mobile.


  1. 在iOS上,你不能为字节code加载主权财富基金之前,AIR 3.6。你必须在编译时将它们打包(在运行时加载反对iTunes Store的政策,全力以赴无法运行)和code在嵌入式SWF是交叉编译的Objective-C与应用程序的其余部分。

  1. On iOS, you cannot load AS bytecode in SWFs prior to AIR 3.6. You must package them at compile-time (loading at runtime is against iTunes Store policies and flat out cannot run) and the code in the embedded SWF is cross-compiled to Objective-C with the rest of the APP.

由于在编译为iOS的应用程序没有AIR运行时(一切都是交叉编译的Objective-C),你不能与字节code的SWF加载,即使你不打算提交iTunes商店。没有可实际运行的运行时间。

Because there is no AIR Runtime in an app compiled for iOS (everything is cross-compiled to Objective-C), you cannot load in a SWF with bytecode, even if you do not plan to submit to the iTunes Store. There is no runtime available to actually run it.

在你的链接的解决方法将无法工作或者因为没有,从来没有在Flash播放器的iOS,这依赖于

The workaround in your link will not work either since there is not and never was a flash player for iOS, which that relies on

在Android上,AIR运行时AS3只。没有加载AS2任何的支持;该运行时根本不存在。

On Android, the AIR runtime is AS3-only. There is no support whatsoever for loading AS2; that runtime simply does not exist.

此外,在您的链接的评论中提到的一点变通办法将不能工作。这种解决方法依赖无需安装Flash Player中运行SWF设备。 Adobe公司获得了前几年下降了Flash Player的Andr​​oid和没有设备已经能够安装它至今。赔率仅仅是所有Android用户的百分比仍然有闪光灯在手机上的一小部分。

Additionally, the little workaround mentioned in the comments of your link will not work either. That workaround relies on the device having Flash Player installed to run the SWF. Adobe dropped Flash Player for Android a few years ago and no device has been able to install it since then. Odds are only a fraction of a percentage of all Android users still have Flash on their phone.

因此​​,有没有办法做你想做的。你必须把它转换为AS3或不支持Android和iOS。

So there is no way to do what you want. You must convert it to AS3 or not support Android and iOS.

这篇关于在AIR应用程序中使用AS2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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