Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
How to add a listener to APPLICATION_SUSPEND and APPLICATION_RESUME — Gideros Forum

How to add a listener to APPLICATION_SUSPEND and APPLICATION_RESUME

RogerTRogerT Member
edited March 2013 in General questions
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

Sign In or Register to comment.