Trouble with textField in changing scene

Hi, I have a 2-scene app and I need to skip from one to other easily.

I grouped all the object in the first scene group, but when I go to the second scene the textField still appear (the other object no!)…I tried to put  textField.isVisible = false when I call the goto function and it disappear, but when I return to the first scene I can’t re-show the textField because if I write textFiels.isVisible = true in the Show-did function of the first scene, Corona say: “attempt to index global ‘textField’ (a nil value)”

I tried in some way but I really can’t show/hide correctly the textField!

You’ve got a scoping issue.

You want something like this right? 

https://www.youtube.com/watch?v=zdJG5ddEDIU&feature=youtu.be

You can see how I did it by downloading this file and looking at example 13:

https://github.com/roaminggamer/CoronaGeek/raw/master/Hangouts/composer_scene_manager.zip

Index of examples here:

https://github.com/roaminggamer/CoronaGeek/blob/master/Hangouts/composer_scene_manager/README.md

Just an FYI.  I have a ton of examples and answers to questions, here

:o  :o  :o  Reading your code I noticed that I simply need to declare local textField at the start of the code as you did in scene1.lua

Thank you!!  :rolleyes:

You’ve got a scoping issue.

You want something like this right? 

https://www.youtube.com/watch?v=zdJG5ddEDIU&feature=youtu.be

You can see how I did it by downloading this file and looking at example 13:

https://github.com/roaminggamer/CoronaGeek/raw/master/Hangouts/composer_scene_manager.zip

Index of examples here:

https://github.com/roaminggamer/CoronaGeek/blob/master/Hangouts/composer_scene_manager/README.md

Just an FYI.  I have a ton of examples and answers to questions, here

:o  :o  :o  Reading your code I noticed that I simply need to declare local textField at the start of the code as you did in scene1.lua

Thank you!!  :rolleyes: