Is there a difference between display.newImageRect and for example widget.newButton when adding to scene groups?
background = display.newImageRect(sceneGroup, "images/backgrounds/image.jpg", display.actualContentWidth, display.actualContentHeight)
Not sure whether it’s necessary but I also have sceneGroup:insert(background). Without that line it doesn’t make any difference either. But when exiting the scene this image is not removed. Whereas this object:
menu\_btn = widget.newButton({ id = "menu", x = btnPos, y = buttonY, onRelease = function(event) end, width = btnWdth, height = btnHt, defaultFile = "images/game/menu.png", overFile = "images/game/menuoff.png", }) sceneGroup:insert(menu\_btn)
gets added to the scene group and gets hidden no problem when exiting the scene. They’re both added at the same scene:function and only added once. I can make them invisible of course or whatever but I’m just not sure why these objects are different.