looking for a good corona storyboard example that uses buttons instead of whole scene to switch between scene(lua files)...

looking for a good corona storyboard example that uses buttons instead of whole scene to switch between scene(lua files)… [import]uid: 6134 topic_id: 23866 reply_id: 323866[/import]

I know there is an example here http://blog.anscamobile.com/2011/11/introducing-the-storyboard-api/ but I need one that uses buttons instead of clicking anywhere on the screen to move to the next screen/lua file. [import]uid: 6134 topic_id: 23866 reply_id: 96156[/import]

add a touch listener to the button.
and make the listener call the new scene.
Something like

local function gotomyscene()  
storyboard.gotoScene("filename")  
button:addEventListener("tap", gotomyscene) --you can use tap or touch  

Is that what you’re looking for? [import]uid: 76413 topic_id: 23866 reply_id: 96158[/import]