If you just want to be able toread the file names somewhere else you can just add a reference to it on the group like:
imagesGroup.myTopImages = topImages
Then you can read that table anywhere you can access that group.
If you want the images actualy displayed then you need to use display.newImage or display.newImageRect for every image to create an image display object first and then you can insert that in the group.
If you just want to be able toread the file names somewhere else you can just add a reference to it on the group like:
imagesGroup.myTopImages = topImages
Then you can read that table anywhere you can access that group.
If you want the images actualy displayed then you need to use display.newImage or display.newImageRect for every image to create an image display object first and then you can insert that in the group.
Instead of waste forum space starting a new question, Im going to ask here because my question is very similar.
I also understand a table cannot be put into a group. However, Is it possible to insert a table into a container? I want to be able to treat a table as “one” display object. Nesting would be a good concept to think of concerning my question. I want several display objects to be treated as one…Possible? Thanks for any help!
A table in Corona/Lua is a data structure for storing data and references, it has no visible component unless you are reffering to the tableView widget.
A display group is I way of grouping several display objects (images, texts, shapes) so you can move/size/manipulate them all together.
A container is a special kind of display group that has a mask to crop (not show) any display objects (or parts of them) in it that are outside of its bounds.
By this terms inserting a table in to a group or container makes no sense as I don’t know what you are trying to achieve.
If your table is basicaly a list of display objects then you can insert all of them separately in either a group or a container and manipulate them all together using the group or container. Remember you have to insert each one of them.
myTable = {} – Create a table for maintaining references
myGroup = display.newGroup() – Create a display group into which display objects will be inserted to manipulate them jointly
Instead of waste forum space starting a new question, Im going to ask here because my question is very similar.
I also understand a table cannot be put into a group. However, Is it possible to insert a table into a container? I want to be able to treat a table as “one” display object. Nesting would be a good concept to think of concerning my question. I want several display objects to be treated as one…Possible? Thanks for any help!
A table in Corona/Lua is a data structure for storing data and references, it has no visible component unless you are reffering to the tableView widget.
A display group is I way of grouping several display objects (images, texts, shapes) so you can move/size/manipulate them all together.
A container is a special kind of display group that has a mask to crop (not show) any display objects (or parts of them) in it that are outside of its bounds.
By this terms inserting a table in to a group or container makes no sense as I don’t know what you are trying to achieve.
If your table is basicaly a list of display objects then you can insert all of them separately in either a group or a container and manipulate them all together using the group or container. Remember you have to insert each one of them.
myTable = {} – Create a table for maintaining references
myGroup = display.newGroup() – Create a display group into which display objects will be inserted to manipulate them jointly