For some reason I cant get this to work. The store opens blank and it gives me a popup that cannot open Itunes store. I have internet and if I back out and go to my Itunes store everything works. Am I doing something wrong.
Thanks
[lua] – Setup “Rate Game Button” Button
local touchRateGameBtn = function( event )
if event.phase == “release” and rateGameBtn.isActive == true then
rateGameBtn.isActive = false
– Play Sound
local soundsOn = gameSettings[“soundsOn”]
if soundsOn == true then
local freeChan = audio.findFreeChannel()
audio.play( tapSound, { channel=freeChan } )
local freeChan2 = audio.findFreeChannel()
audio.play( runningSound, { loops=-1, channel=freeChan2 } )
end
local itmsURL = “itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsuserReviews?type=Purple+Software&id=467931579”
system.openURL( itmsURL )
end
end
if not rateGameBtn then
rateGameBtn = ui.newButton{
defaultSrc = “rategame.png”,
defaultX = 155,
defaultY = 59,
overSrc = “rategame-over.png”,
overX = 155,
overY = 59,
onEvent = touchRateGameBtn,
id = “rateGameBtn”,
text = “”,
font = “Helvetica”,
textColor = { 255, 255, 255, 255 },
size = 16,
emboss = false
}
rateGameBtn.xOrigin = 330; rateGameBtn.yOrigin = 600
rateGameBtn.isVisible = false
gameGroup:insert( rateGameBtn )
end
[lua] [import]uid: 34105 topic_id: 15658 reply_id: 93762[/import]