Yes it’s possible can you write your code here with the fonction
function backHandleButtonEvent( event )
sound:play( “buttonSound” )
if params.var ~= nil then
if params.var == 1 then
local options =
{
}
storyboard.gotoScene( “logInScreen”, options )
elseif params.var == 2 then
local options =
{
}
storyboard.gotoScene( “mainMenu”, options )
end
end
end
local backSheetOptions =
{
width = backButtonWidth,
height = backButtonHeight,
numFrames = 2,
sheetContentWidth = backButtonContentWidth,
sheetContentHeight =backButtonContentHeight
}
local backButtonSheet = graphics.newImageSheet( backButtonImagePath , backSheetOptions )
backButton = widget.newButton{
id = “backButton”,
sheet = backButtonSheet,
defaultFrame = 1,
overFrame = 2,
width = 162,
height = 68,
onRelease = backHandleButtonEvent
}
backButton.x = displayOffsetX(400,offsetx)
backButton.y = displayOffsetY(700,offsety1,offsety2)
backButton.xScale = Xa
backButton.yScale = Ya
screenGroup:insert(backButton)
(between them).
In ressources and sample code you have the easy solution ! But put your code if you want, i think i can help you.