是否有可能嵌入或使iPhone应用程序加载时,主权财富基金(它是由苹果公司允许)苹果公司、有可能、是由、主权

2023-09-09 21:22:57 作者:沙雕总攻女人

我是否嵌入主权财富基金或为iPhone制作应用程序加载时,他们有点困惑。有谁知道什么是各自的优势(是preferable要使用的)?我知道,嵌入主权财富基金应该比它们加载快一点,但是是这样吗?

I am a little confused on whether to embed swfs or load them when making apps for the iphone. Does anyone know what are the advantages of each (which is preferable to use)? I know that embedding swfs should be a little faster than loading them but is that all?

此外,这是一种重要的,我读了苹果将拒绝与外部主权财富基金的任何应用程序?那是确实是正确的?如果是这样,将嵌入或装入说主权财富基金解决这个问题?

Also and this is kind of important, I read that Apple will reject any app with external swfs?? Is that indeed correct? If so, will embedding or loading said swfs solve this problem?

在此先感谢

编辑:经过一番摸索,原来,苹果确实有问题,加载外部主权财富基金,你仍然可以做到这一点,但你的主权财富基金不需要任何动作连接,这里是一个链接 http://whizzkid74.blogspot.com/2010/12 /air-for-iphone-loading-external-swf.html 的它不说的不过嵌入主权财富基金什么,所以我的问题是这样的:写在iPhone ??

after some searching around, turns that Apple does have problems with loading external swfs, u can still do it, but your swfs need not have any actionscript attached, here is a link http://whizzkid74.blogspot.com/2010/12/air-for-iphone-loading-external-swf.html It doesnt say anything about embedding swfs however, so my question is this: can u embed swfs when writing apps on the iphone??

修改要澄清一下,当我说的外部主权财富基金。我的意思是找到了你的系统上的本地主权财富基金,但你需要将它们添加到您的程序,因为它们包含的影片剪辑或精灵等等,美的需要。我不是那个意思,你需要从一个网站或在线来源下载的SWF。 (希望澄清的东西)

EDIT To clarify, when i say external SWFs. I mean SWFs that are found on your system locally but you need to add them to your program since they contain MovieClips or Sprites etc... that u need. I didn't mean SWFs that you need to download from a website or an online source. (hope that clarifies things)

修改改变问题的标题...问题解决了,感谢所有帮助球员和新年快乐= D

EDIT Changed the question's title...Problem solved, thanks for all the help guys and happy new year =D

推荐答案

答案是肯定的,你可以嵌入主权财富基金,但是这不是唯一的方法。您也可以使用普通装载机方法,一切相对于主SWF:

The answer is yes, you can embed SWFs, but that is not the only way. You can also use normal Loader methods, with everything relative to the main SWF:

var myLoader:Loader = new Loader();
// iOS apps act as if the main SWF is in a folder 
// and the other SWFs are in the same (or sub) folders. 
var url:URLRequest = new URLRequest("loadedSWF.swf");
myLoader.load(url);
addChild(myLoader);
myLoader.x = 50;
myLoader.y = 30;

有一点需要注意:在编译时(在空气的iOS设置,在包括的文件列表中),您必须列出要加载的主权财富基金,它们将被编译成IPA 。

With one caveat: during compile time (in the "Air for iOS Settings", in the "Included files" list), you have to list the SWFs that you want to be loaded, and they will get compiled into the IPA.

所以,不,你不能调用外部主权财富基金,但你肯定可以使用嵌入标签,或使用(可称之为)IPA嵌入访问其他的主权财富基金。

So, no you cannot call to external SWFs, but you certainly can access other SWFs using the embed tag, or using (what might be called) IPA embedding.

编辑:

由于问题和标题都改了一下,因为我第一次回答这个,这里是一个更通用的总结。苹果不允许你将能够以同样的方式加载本地SWF到如果使用Flash Player的网站上。有没有办法来加载一个SWF(或其他),使用相对或本地引用在智能设备的除非的这些内容被编译到应用程序。这并不适用于某些类型的远程SWF加载的,也并不适用于动作脚本本土编码,但不是(原来的)问题是什么。

Since the question and title have changed a bit since I first answered this, here is a more generic summary. Apple does not allow loading local SWFs in the same way that you would be able to if using Flash Player on a website. There is no way to load an SWF (or anything else) using "relative" or "local" references in an i-device unless that content is compiled into the app. This does not apply to some types of "remote" SWF loading, and also does not apply to Actionscript "Native" coding, but that is not what the (original) question was about.