Hello. I have a background set up in front of everything that I placed on a lua file. What is a good solution to send it to the back?
[lua]module(…, package.seeall)
function new()
local section1Group = display.newGroup()
local background = display.newImage(“old_background_small.jpg”)
local scrollView = require(“scrollView”)
local util = require(“util”)
local topBoundary = display.screenOriginY
local bottomBoundary = display.screenOriginY
local scrollView = scrollView.new{top=topBoundary,bottom=bottomBoundary}
local back = display.newImage(“button_back_small.png”)
back.x = 40;
back.y = 23;
back.scene = “menu”
background:toBack()
section1Group:insert(scrollView)
section1Group:insert(back)
section1Group:insert(background, bringToBack)
scrollView:addScrollBar()
back:addEventListener(“touch”, changeScene)
return section1Group
end[/lua] [import]uid: 162639 topic_id: 33169 reply_id: 333169[/import]