Error, Storyboard not passing parameters after overlay

When I start my application (I’m using Storyboard), I pass parameters like that:

     local options =

         {

            effect = “crossFade”,

            params =

            {

                newindex = 0,

                oldindex = 0

            }       

         }          

        storyboard.gotoScene( “mainscreen”, options)

Then on the mainscreen EnterScreen event, I have the params no problem. 

When I call an overlay (“Scene2”) from the mainscreen, then come back to the mainscreen using the gotoScene within the “Scene2” with the same params, the EnterScreen from mainscreen is called but not the parameters. Same code as above. 

Can you show the code you’re using to access your params data in the other scenes?

Well yes… in the EnterScene event, coming back from an overlay from this scene.

local iparam = event.params

… iparam.newindex

Can you make an example and report the bug?

I have had a parameter passing problem from the beginning but never been able to reproduce it constantly. I bookmarked this topic at the time I was battling with the bug http://developer.coronalabs.com/forum/2013/01/09/tips-tricks-learned-while-developing-shaqdown

where he says “Paramaters dont get passed in some cases.”

I ended up making a workaround. I’m not 100% sure if its a Corona bug in my case to be honest, more like 95% sure :slight_smile:

Can you show the code you’re using to access your params data in the other scenes?

Well yes… in the EnterScene event, coming back from an overlay from this scene.

local iparam = event.params

… iparam.newindex

Can you make an example and report the bug?

I have had a parameter passing problem from the beginning but never been able to reproduce it constantly. I bookmarked this topic at the time I was battling with the bug http://developer.coronalabs.com/forum/2013/01/09/tips-tricks-learned-while-developing-shaqdown

where he says “Paramaters dont get passed in some cases.”

I ended up making a workaround. I’m not 100% sure if its a Corona bug in my case to be honest, more like 95% sure :slight_smile: