Hey guys!,
Having some problems with a transition between scenes/storyboard via a Tab Bar.
some pseudo code below.
main.lua
loadimages() fires which populates a lua table with the image objects and their visibility set to false i’ll call this images{}. This is a pre loader kinda thing.
go to menu.lua
menu.lua
tabbar() with three options.
first option (default option from tab bar “loads first”)
make items in images{} visible and add them to display group.
second option
listview.lua
third option
info.lua
My issue is during the tab bar transitions. When I first load in everything ( App start) all is good however if I go to the second option on the tab bar (loads in a scene with a list view) and then back to the first option (the one with the images{} table) i get the “bad argument #-2 to ‘insert’ (Proxy expected, got nil)” error when im going to insert my items into the recreated display group. So it appears that I am loosing my display objects in the table or that somehow the pointer/reference to them is getting axed? I messed around with the proxy.lua stuff to see if I could get that to work but seems that it causes even the first entry into the “first option” fail with “bad arguement #-2 to ‘insert’ (Proxy expected, got nil)”
Any thoughts?
If i print the table info for any of the displayObjects in images{} ( images.image1) i get the same table memory reference so it looks like its there? But im not sure if its been modified or some LUA behavior with tables that im not aware of?
Thanks! [import]uid: 128768 topic_id: 32446 reply_id: 332446[/import]