有没有一种偷偷摸摸的方法可以通过 Adobe Flex IOS 打包程序在 iPad 上获取 swf 行为
我构建 Flex 应用程序。其中一张展示幻灯片。它们是在运行时从远程服务器动态加载的 swf。我的幻灯片可以由最终用户调整大小并进行动画处理。
在具有所有 Flash 支持的 PC 上这很容易。对于 iPad,我使用 Adobe Flex IOS 打包程序。很酷。为我提供几乎所需的一切 - 除了在运行时动态加载的 swf。 Apple 的服务条款不支持它。
因此,我只能将幻灯片展平为静态图像,当用户重新调整它们的大小时,它们不能很好地缩放,并且显然不显示动画。
如果我使用 XCode 构建一个原生 IOS 应用程序,我可能可以使用 KeyNote 或类似的东西来实现这一点。虽然做不到。没有时间或资源。
有谁知道通过 Flex IOS 打包程序实现这种美感的偷偷摸摸的方法吗?是否有一些创造性的方法可以隐藏 swf 或使用其他图像格式(例如动画 gif 或其他我认为可能无法很好扩展的图像格式)?
I build Flex applications. One of them shows slides. They're swf's loaded dynamically from a remote server at run-time. My slides are both re-sizable by the end user and animated.
This is easy on the PC with all the Flash support. For the iPad I use the Adobe Flex IOS packager. Pretty cool. Gets me just about everything I need - except swf's dynamically loaded at run-time. Apple's terms of service do not support it.
So I'm relegated to flattening slides into static images which don't scale well when users re-size them and obviously don't show animations.
If I built a native IOS app with XCode I could probably achieve this with KeyNote or something alike. Can't do it though. Don't have the time or resources.
Has anyone knowledge of a sneaky way to achieve this aesthetic via the Flex IOS packager? Is there some inventive way to sneak swf's in or use another image format like animated gif's or something else I'm not thinking of that might scale well?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在运行时导入带有帧标签的 swf。然后,您的 shell swf 可以根据 stop() 等标签或什至添加侦听器告诉加载的幻灯片要做什么。
You can import swfs at runtime with frame labels. Your shell swf can then tell the loaded slide what to do based on the labels such as stop() or even adding listeners.
如果您不介意预编译,则可以将所有 SWF 编译为 SWC,并从应用程序本地动态加载它们。 iOS 应该在其 TOS 中允许这样做,因为 SWC 基本上是一个符号/类库,您可以实例化它们。
这是一个很棒的教程,这几乎就是您要解决的问题
如果您仍然需要加载 SWF(通过 Web 服务或其他外部源),请注意反对加载 swf 的 iOS 指南的技术性和“精神”是加载 EXECUTABLE内容,可以在运行时解释和运行(即任何可能包含动作脚本的内容)。
解决这个问题的方法是仅加载其中没有 Actionscript 的 swf。 “...仅包含图像、静态文本和嵌入字体的文件是允许的...”(此线程对此进行了讨论:http://forums.adobe.com/message/4004457)
If you don't mind pre-compiling, you can compile all your SWFs into SWCs and load them dynamically, locally from your app. iOS should allow this in their TOS since the SWCs are basically a library of symbols / classes that you can then instantiate.
Here's a great tutorial on it, that pretty much is the workaround you're looking for.
If you still need to load SWFs (via a webservice, or some other outside source), then note that the technicality and "spirit" of the iOS Guideline against the loading of swfs is loading EXECUTABLE content, that can be interpreted and run at runtime (i.e. anything that could have actionscript within it).
The way around this is to only load swf's that have no Actionscript in them. "...files that contain only images, static text and embedded fonts are permissable..." (from this thread discusses this: http://forums.adobe.com/message/4004457)