Hello
I have the following storyboard setup
MAIN.LUA
-
> MAINSCREEN.LUA
-
- > MENUSCREEN.LUA
-
-
- > BREAKFASTMENU.LUA
-
-
-
- > LUNCHMENU.LUA
-
-
-
- > TAKEAWAYMENU.LUA
-
-
-
- > PIZZAMENU.LUA
-
-
- > DRINKSMENU.LUA
-
-
- > COFFEEMENU.LUA
-
-
-
- > JUICEMENU.LUA
-
-
-
- > MILKSHAKEMENU.LUA
-
-
-
- > OTHERDRINKSMENU.LUA
-
- 4 other child and grandchildren screens.
My MAIN.LUA has a widget.tabbar that points to the direct child of MAINSCREEN.LUA. Each child screen has buttons that point to the grandchildren.
Each scene has the following event listeners.
scenebreakfast:addEventListener( “createScene”, scenebreakfast )
scenebreakfast:addEventListener( “enterScene”, scenebreakfast )
scenebreakfast:addEventListener( “exitScene”, scenebreakfast )
scenebreakfast:addEventListener( “destroyScene”, scenebreakfast )
My problem is when I exit say the BREAKFASTMENU and GOTO MENUSCREEN then into LUNCHMENU then back into the MENUSCREEN and back into BREAKFASTMENU the BREAKFASTMENU has not removed itself from memory and overlaps the other grandchild screens.
All Grandchild screens are not cleaning,
Is storyboard only for Parent and Child setups and not Parent, Child, Grandchild and Great Grandchild setups?