TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Resolved Questions
→
Problem with the nme.Lib.exit () ; code [Solved]
Pages:
1
Problem with the nme.Lib.exit () ; code [Solved]
Zeanon
Posts: 44
November 19, 2014, 03:49:06 pm
Hello friend Stencylers!
I used the above code with the overide back button so that i could exit the game properly from the main menu.
The problem is that when someone tries to access the game from the recent apps section of the android the game is shown as a black window instead of showing the last scene (the main menu in this instance).
Any thoughts of what i can do ?
I attach the sceenshots to the code as well of the black screen in the recent apps so that you can understand better what i am talking about.
Many thanks beforehand!
« Last Edit: November 19, 2014, 05:08:22 pm by Zeanon »
rob1221
Posts: 9472
November 19, 2014, 04:20:37 pm
Try nme.system.System.exit(1); and maybe that will work better.
https://twitter.com/Rob1221dev
Zeanon
Posts: 44
November 19, 2014, 05:07:40 pm
You were right!
That did work better! Actually it works like a charm!!!
I will post some screenshots of the code so that others with the same problem will be helped
Thank you very much your suggestion was on the mark!
Edit: System.exit(1); (for the screenshot)
« Last Edit: November 19, 2014, 05:21:49 pm by Zeanon »
Pages:
1