Hello!
I am using image/buttons with director to move from one page to other.
Using the display.remove seems not to work propertly, because system.getInfo( "textureMemoryUsed" ) prints the same amount of memeory.
What am I doing wrong? I tried to use it inside and outside the if - end.
Thank you!
e.x.
local arrowback = ui.newButton{
default = "arrow-back.png",
over = "arrow-back.png",
onEvent = PreviousPage,
id = "PreviousPageButton"
}
local function PreviousPage ( event )
if event.phase == "release" then
director:changeScene("mainmenu")
display.remove( localgroup )
print("page01:",system.getInfo("textureMemoryUsed" ))
end
end