If I am moving objects around, such as in a drag & drop activity, how can I bring an object to the front of the display list? [import]uid: 130457 topic_id: 22556 reply_id: 322556[/import]
You can use object:toFront() and object:toBack()
Or, if your objects are in a display group, reinserting them at an index will move them to that position:
[code]
local image1 = display.newImage(“layer1.png”)
local image2 = display.newImage(“layer2.png”)
local image3 = display.newImage(“layer3.png”)
local group = display.newGroup()
group:insert(image1)
group:insert(image2)
group:insert(image3)
–later on:
–move image3 to the middle position
group:insert(2, image3)
[/code] [import]uid: 120 topic_id: 22556 reply_id: 89922[/import]