Bug with storyboard.gotoScene

I have two scene Scene1 and Scene2. Now in Scene1, I call storyboard.gotoScene(scene2) with option:

local options = { effect = "slideRight", time = 400 }

In Scene1.didExitScene I purge this scene:

function scene:didExitScene(event) local group = self.view print("did exit scene1") storyboard.purgeScene("Scene1") end

and I have an error: Scene1 is purged as soon as the transition begin, not when transition done. I set the time to 4000, and I see function didExitScene call when the transition begin. I want Scene1 slide out and Scene2 slide in. But Scene1 is purge immediately, only Scene2 slide in. Is that an error? Corona docs said didExitScene “Called AFTER scene has finished moving offscreen”.

Sory for my bad english.

Anyone hear me?

I find it better to purge scenes right before you goto them.   didExit is possibly firing before the transition finishes.

I think purge old Scene when goto new Scene can save some memory. But I need to show the transition scene effect. So now I don’t know how to show the transition effect “slide left”, and purge oldScene when transition done.

As I said before, If i call the purge scene on did exit Scene, the scene if purge as soon as the transition begin, so my effect is wrong. Any way to fix it?

Thanks for your help

The other thing you can do is get the previous scene name and then purge that scene in the enterScene() phase of the scene you just went to.

I’m already using it :slight_smile: , but it seem to be the “cheat” way. Can you ( i mean Corona ) fix the didExitScene method?

You will need to file a bug report using the “Report a bug” link above.

Sorry, but I can’t see the “Report a bug” link, only the “Report this post to a moderator”

http://developer.coronalabs.com/content/bug-submission

Thanks you. But it’s too complicated to report bug. I fixed it with Rob way. Hope this problem will be fixed soon

Anyone hear me?

I find it better to purge scenes right before you goto them.   didExit is possibly firing before the transition finishes.

I think purge old Scene when goto new Scene can save some memory. But I need to show the transition scene effect. So now I don’t know how to show the transition effect “slide left”, and purge oldScene when transition done.

As I said before, If i call the purge scene on did exit Scene, the scene if purge as soon as the transition begin, so my effect is wrong. Any way to fix it?

Thanks for your help

The other thing you can do is get the previous scene name and then purge that scene in the enterScene() phase of the scene you just went to.

I’m already using it :slight_smile: , but it seem to be the “cheat” way. Can you ( i mean Corona ) fix the didExitScene method?

You will need to file a bug report using the “Report a bug” link above.

Sorry, but I can’t see the “Report a bug” link, only the “Report this post to a moderator”

http://developer.coronalabs.com/content/bug-submission

Thanks you. But it’s too complicated to report bug. I fixed it with Rob way. Hope this problem will be fixed soon