2014-01-08 37 views
0

使用免費的Adobe Gaming SDK 1.3 GameCenter示例無法正常工作/編譯。當我嘗試創建一個GameCenterController的實例時,它說它是空的。AIR/IOS - 需要使用Adobe Gaming SDK 1.3的GameCenter工作示例

// Class var private var gcController:GameCenterController;

//在GameCenterController.isSupported = true之後的構造函數中。 gcController = GameCenterController(); trace(gcController); //返回null。

我只是不想在MilkManGames的某些代碼上花費70美元(http://www.milkmangames.com/blog/tools/#iosgc),但這應該可以正常工作,並且免費提供。

想法?

回答

0

你沒有正確包含GameCenter ANE。您必須將ANE文件添加爲本機擴展(如果您位於Flash Builder中,請單擊Project> Properties> Flex/ActionScript Build Path> Native Extensions),並且必須將其包含在適當平臺的項目中(在Flash Builder,Project >屬性> Flex/Actionscipt構建包裝> iOS>本機擴展)。

沒有一個例子可以幫助您,因爲您沒有正確地將原生擴展包括在第一位。

相關問題