I did something like this using storyboard api but not really any joy as it never moves to the main menu
[lua]local function initInneractiveCallback( event )
if event.data then
inneractiveCalledBack = true
movetoMainMenu()
end
end
local function initGameNetworkCallback( event )
if event.data then
gameNetworkCalledBack = true
movetoMainMenu()
end
end
local function movetoMainMenu()
if(gameNetworkCalledBack == true and inneractiveCalledBack == true) then
storyboard.gotoScene( “mainmenu”)
end
end
local function onSystemEvent( event )
if event.type == “applicationStart” then
if(system.getInfo(“environment”) == “simulator”) then
– Load The Remote
storyboard.remote = require(“remote”)
– Start The Remote On Port 8080
storyboard.remote.startServer( “8080” )
– Redirect to the mainmenu
storyboard.gotoScene( “mainmenu”)
else
gameNetwork.init( “gamecenter”, {listener=initCallback} )
storyboard.gameNetwork.init( “openfeint”, “xxxxxxxxxxx”, “xxxxxxxxxx”, “xxxxxx”, “00000”, {listener=initGameNetworkCallback} )
– Initialise inneractive:
if(system.getInfo(“model”) == “iPad”) then
ads.init( “inneractive”, “xxxxxxxxx”, {listener=initInneractiveCallback} )
else
ads.init( “inneractive”, “xxxxxxxxxx”, {listener=initInneractiveCallback} )
end
end
return true
end
end[/lua] [import]uid: 103970 topic_id: 21771 reply_id: 86456[/import]