I use Music Player example, and add some lines at the bottom
stage:addEventListener(Event.APPLICATION_SUSPEND,
function()
print("line 1")
print("line 2")
print("line 3")
end
)
Only "line 1" was printed when I make an interrupt. Is it expected behavior? (only one instruction execute when suspend)
Regards,
Comments
They're all executed. Just the player cannot send all of the print messages through wi-fi. If you want, just write a bunch of lines to a file as described here http://www.giderosmobile.com/forum/discussion/377/writing-to-file#Item_7 and then read them back.
(I think it's better to flush all network cache before exiting. I'll look at it)
I see that line 2 and line 3 are printed after I resume the app.
In my game, I'd like all of entities (sprite) are invisible when suspend. So I take a loop to do setVisible(false) to all, but they are just disappeared after I resume, not right-away I make interrupt.
Thanks,
Edit: I set the parent sprite (the root sprite of all sprites), but no luck
For the visibility issue, you can refer to this code:
http://www.macstories.net/tutorials/ios-5-tips-tricks-hidden-features/
Animation is still playing when I minimize slowly. It's nice if it's possible!
Thanks,
Do you have any good news about this issue?
I hope so
We are thinking to try a temporary workaround, that is... the game will pause if it recognizes 4 or more simultaneous touch points (!)