Attaching more than one image to a table

Although it appears this should work, I’m not having much luck.
What I’m trying to do is attach 2 images into a table, and then move both by updating the table’s position.

So, I’m trying something like this:

local container = {}

local pic1 = display.newImage( “pic1.png” )
pic1.x = 40
pic1.y = 40
container.pic1 = pic1

local pic2 = display.newImage( “pic2.png” )
pic1.x = 90
pic1.y = 40

container.pic2 = pic2

container.y = 40

What happens is the that moving the container’s position happens, but the images are placed as per their initial set-up. I’m guessing the fact that I haven’t got this working means that I’ve either missed something fundamental, or it’s not possible.

Anyone got any suggestions?

(Essentially, I’m looking for shortcuts to updating many items.) [import]uid: 34358 topic_id: 7060 reply_id: 307060[/import]

Tables are not display objects, you want a group:
http://developer.anscamobile.com/content/displaynewgroup [import]uid: 12108 topic_id: 7060 reply_id: 24751[/import]

aha - that’s where I’ll have been going wrong. Thanks! [import]uid: 34358 topic_id: 7060 reply_id: 24756[/import]