iOS开发使用Flash CS5问题
我已按照 Adobe 关于如何使用 Flash CS5 开发 iOS 应用程序的说明进行操作。完成所有步骤并能够在我的 iPad 和 iPhone 上安装我的应用程序。问题是它没有起作用!
如果我上传一个简单的 hello world flash 应用程序,它可以正常工作。但是当我将我的游戏移植到使用 Pushbutton 引擎和 Box2d 等的游戏时,我得到的只是 iPad 上的白屏和 iPhone 上的黑屏。它不会崩溃。它只是没有做任何事情。有人遇到过这种情况吗?我没有收到任何错误或任何东西。
所以我不知道为什么它不起作用。当我在我的电脑上运行该应用程序时,它看起来正常并且可以工作。仅当我将其安装在我的设备上时才会出现此行为。我正在使用带有最新更新的 Flash cs5 进行 ios 开发。
如果有人知道如何解决这个问题,或者我如何获得有关其正在执行的操作或出现的任何错误的更多信息,那将非常有帮助。谢谢你!
我在我的文档类中使用这种类型的标签。我想知道它是否不喜欢它:
[SWF(width="1024" , height="768" , frameRate="30" , "--keep-as3-metadata+=TypeHint,EditorData,Embed" )]
public class DocumentClass extends Sprite
I've followed Adobe's instructions on how to develop iOS app using Flash CS5. Went through all the steps and was able to install my app on my ipad and iphone. The problem is that it didn't work!
If I upload a simple hello world flash app that works fine. But when I port my game to it which uses the Pushbutton engine and Box2d etc. all I get is a white screen on iPad and a black screen on the iphone. It doesn't crash. It just doesn't do anything. Anyone encounter this? I don't get any errors or anything.
So I don't know why it doesn't work. When I run the app on my PC it looks ok and works. This behavior is only when I install it on my device. I'm using Flash cs5 with the latest updates for ios development.
If anyone knows how to get around this or how I can get more information about what its doing or any errors it is getting that would be very helpful. Thank you!
I am using this type of tag in my Document class. I wonder if it doesn't like it:
[SWF(width="1024" , height="768" , frameRate="30" , "--keep-as3-metadata+=TypeHint,EditorData,Embed" )]
public class DocumentClass extends Sprite
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我想通了。问题是由于某种原因,ios 不支持按钮引擎中的嵌入系统。所以我所做的就是在按钮引擎中使用资源的运行时加载,然后确保这些资源包含在 ipa 文件中以供 ios 加载。它成功了!
I figured it out. The problem was that the embedding system in pushbutton engine is not supported on the ios for some reason. So what I did was use the runtime loading of assets in pushbutton engine and then made sure that those were included in the ipa file for ios to load. And it worked!
我是 PushButton 引擎团队的成员,需要明确的是……问题不在于 PushButton 引擎。 Adobe Flex SDK 4.5 中存在一个错误,该错误会破坏 PushButton 引擎内部的 ResourceManager。
更多信息可以在这里找到:
http://blog.natebeck。 net/2011/05/flex-sdk-4-5-doesnt-keep-embed-metadata/
Adobe 目前正在调查该错误:
http://bugs.adobe.com/jira/browse/SDK-30485
I'm on the PushButton Engine team, and to be clear... the problem isn't PushButton Engine. There is a bug in the Adobe Flex SDK 4.5 which breaks the ResourceManager inside of PushButton Engine.
More information can be found here:
http://blog.natebeck.net/2011/05/flex-sdk-4-5-doesnt-keep-embed-metadata/
The bug is currently under investigation at Adobe:
http://bugs.adobe.com/jira/browse/SDK-30485
确保添加 Flex 编译器参数以保留自定义元数据标签:
--keep-as3-metadata+=TypeHint、EditorData、Embed、ResourceType
Make sure to add Flex compiler argument to retain custom metadata tags:
--keep-as3-metadata+=TypeHint,EditorData,Embed,ResourceType