简体   繁体   English

用Flash读取二进制文件

[英]Reading binary plists with Flash

We're writing an iPad app that saves out information as a plist for later reading by a Flash movie. 我们正在编写一个iPad应用程序,该应用程序将信息另存为plist,以便以后通过Flash电影阅读。 Originally we designed the plist to export out as a simple plain text xml file and the Flash player read that fine. 最初,我们将plist设计为以简单的纯文本xml文件格式导出,而Flash Player可以正常阅读。 The problem with that was that the files were monumentally big and verbose so we converted it over to a binary plist. 问题在于文件过大且冗长,因此我们将其转换为二进制plist。 Unfortunately after making the changes necessary for a binary xml file to be read on the Flash end and the iOS device end, we're having no luck with this new file going through. 不幸的是,在为在Flash端和iOS设备端读取二进制xml文件进行了必要的更改之后,我们对新文件的使用感到不走运。

Has anyone developed something using binary Plists to talk between an iOS/Mac device and Flash? 有没有人使用二进制Plists开发某些东西以在iOS / Mac设备和Flash之间进行对话? Are there encoding issues or something else we should be thinking about? 是否存在编码问题或我们应该考虑的其他问题? I'm even cool with doing a work around on the server end to transform a binary plist to a binary xml file that Flash can read if that is a solution. 我什至很乐于在服务器端进行处理,以将二进制plist转换为Flash可以读取的二进制xml文件(如果可以解决的话)。

Many thanks. 非常感谢。

Perhaps http://code.google.com/p/as3plist/wiki/Intro is what you're looking for? 也许http://code.google.com/p/as3plist/wiki/Intro是您要找的东西? I haven't tried it, but it came up in the same search as your question. 我没有尝试过,但它是在与您的问题相同的搜索中提出的。

Edit: I misparsed your question, sounds like you actually have something like this, but it's not working. 编辑:我误解了您的问题,听起来您实际上有这样的事情,但它不起作用。 Still, maybe this will give you a clue as to why your own version's not working. 不过,也许这会为您提供一个线索,说明您自己的版本为何不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM