Hi guys,
What's the right way to use APPLICATION_SUSPEND and APPLICATION_RESUME ?
function goToSleep()
gameIsPaying = false
intScore = intScore+200
end
function wakeUp()
gameIsPaying = true
intScore = intScore+500
end
stage:addEventListener("APPLICATION_SUSPEND", goToSleep )
stage:addEventListener("APPLICATION_RESUME", wakeUp )
doesn't really seem to work. Thanks. )
Comments
stage:addEventListener(Event.APPLICATION_SUSPEND, goToSleep )
stage:addEventListener(Event.APPLICATION_RESUME, wakeUp )
or
stage:addEventListener("applicationSuspend", goToSleep )
stage:addEventListener("applicationResume", wakeUp )
Likes: ar2rsawseen, zvardin