I made up a simple sample based on your instructions and couldn’t reproduce your issue.
You can download the sample i made here to confirm: http://www.mediafire.com/?oc7jr583c7ovr70 [import]uid: 84637 topic_id: 31524 reply_id: 126567[/import]
I made up a simple sample based on your instructions and couldn’t reproduce your issue.
You can download the sample i made here to confirm: http://www.mediafire.com/?oc7jr583c7ovr70 [import]uid: 84637 topic_id: 31524 reply_id: 126567[/import]
Danny - thanks for taking a look! Your example worked fine in the project you linked to, but once I put it in my project I get the same error:
bad argument #-2 to ‘insert’ (Proxy expected, got nil)
stack traceback:
[C]: ?
[C]: in function ‘insert’
?: in function ‘?’
?: in function ‘gotoScene’
I still have no trouble calling gotoScene directly.
Any ideas why this might be? [import]uid: 44271 topic_id: 31524 reply_id: 126573[/import]
Odd.
I may have to ask for more code because I can only guess without it.
Are you trying to insert an image into a group below that call?
Is your project massive or can you condense it into something I can view as a simple sample like the one i made?
Thanks [import]uid: 84637 topic_id: 31524 reply_id: 126575[/import]
Danny,
I think I found the problem. I was calling storyboard.removeScene(storyboard.getCurrentSceneName()) within scene:exitScene( event ). Once I took that out, no more issue with gotoScene changes within a native Alert.
I’ll use another method to clean up the scene I’m leaving.
Thanks for the help.
JJ [import]uid: 44271 topic_id: 31524 reply_id: 126578[/import]
Call that in your
didExitScene function
And it should work fine [import]uid: 84637 topic_id: 31524 reply_id: 126579[/import]