1

我想分享我在 facebook 上制作的游戏的一部分,就像它可以在 Angrybirds 中完成一样。

但问题是游戏是用八哥写的

我收到此错误“应用程序未正确嵌入”

我的问题是

  1. 我可以在没有硬件加速的情况下使用八哥吗?
  2. 如果同样知道告诉 Facebook 以直接模式嵌入 swf 的方法?

在这里它结束了愤怒的小鸟示例,刚刚过去它在 facebook 上

https://angrybirds-facebook.appspot.com/embed?levelId=9-1&levelName=Surf+and+Turf-1&score=56530

4

2 回答 2

1

I came across this issue on a project earlier in the year and unfortunately there's no current way to use Stage3D inside the Facebook timeline ('feed gaming' as opposed to a standard Facebook app), because the embedding that Facebook applies uses wmode:"opaque", and there's no option to change that through the FBML meta properties. More details here on what you can specify: https://developers.facebook.com/docs/games/feed-gaming/

In the case of Angry Birds, they use a stripped down version of their app (with just one level, I believe) for the timeline feed version, which doesn't use Starling or Stage3D.

And to answer your other question, you can use Starling with a software rendered fallback (where compatible graphics hardware isn't available), but it unfortunately will still go through Stage3D (as described here: http://www.bytearray.org/?p=3443), and if used without wmode:"direct" it will still fail with the error 3702: Context3D not available.

The workaround, then, if you need it to run in the Facebook timeline, is to either rebuild your application to use conventional display objects, and no Stage3D content, or to make a cut-back second version, which doesn't use Stage3D but links out to your fullblown version, inside a conventional Facebook app. Sorry for the bad news; I feel your pain.

于 2013-09-11T11:57:35.300 回答
0
  1. 我可以在没有硬件加速的情况下使用八哥吗?

不,它是基于 Stage-3D 的引擎,因此它将使用硬件加速

  1. 如果同样知道告诉 Facebook 以直接模式嵌入 swf 的方法?

您应该更改 HTML 包装文件(嵌入 Flash 的位置),添加一个新参数“wmode = direct”,它将完美运行。您应该更改 wmode 参数的位置取决于您使用的 IDE。使用 FlashDevelop 或 Flash Builder,您只需添加

wmode: "direct" 

到参数数组

于 2013-09-11T10:42:33.510 回答