hey i am making a simple app that use scroll view and my app is crashing why here is my code
local storyboard = require("storyboard") storyboard.purgeOnSceneChange = true local scene = storyboard.newScene() --storyboard.removeAll() function scene:createScene(event) -- background end -- end of create scene background = display.newImage("bg.png") local widget = require( "widget" ) -- Our ScrollView listener function scrollListener( event ) phase = event.phase direction = event.direction if "began" == phase then --print( "Began" ) elseif "moved" == phase then --print( "Moved" ) elseif "ended" == phase then --print( "Ended" ) end -- If the scrollView has reached it's scroll limit if event.limitReached then if "up" == direction then print( "Reached Top Limit" ) elseif "down" == direction then print( "Reached Bottom Limit" ) elseif "left" == direction then print( "Reached Left Limit" ) elseif "right" == direction then print( "Reached Right Limit" ) end end return true end -- Create a ScrollView scrollView = widget.newScrollView { left = 0, top = 0, width = display.contentWidth, height = display.contentHeight, bottomPadding = 50, id = "onBottom", horizontalScrollDisabled = true , verticalScrollDisabled = false , hideBackground = true, listener = scrollListener, } worlds = display.newImage ("pink1.png") worlds.x = 150 worlds.y = 100 scrollView:insert( worlds) worlds1 = display.newImage ("pink2.png") worlds1.x = 150 worlds1.y = 300 scrollView:insert( worlds1) worlds2 = display.newImage ("pink3.png") worlds2.x = 150 worlds2.y = 500 scrollView:insert( worlds2) worlds3 = display.newImage ("pink4.png") worlds3.x = 150 worlds3.y = 700 scrollView:insert( worlds3) worlds4 = display.newImage ("pink5.png") worlds4.x = 150 worlds4.y = 900 scrollView:insert( worlds4) function word1 ( event) if event.phase == "began" then print "play sound" storyboard.gotoScene("word one","fade",400) return true end end function scene:enterScene(event) worlds:addEventListener("touch", word1 ) end function scene:exitScene(event) worlds:removeEventListener("touch",word1) scrollView:removeSelf() scrollView = nil end function scene:destroyScene(event) end scene:addEventListener("createScene",scene) scene:addEventListener("enterScene",scene) scene:addEventListener("exitScene",scene) scene:addEventListener("destroyScene",scene) return scene when i go a different screen the app crash the second time i try to go back to the scroll view menu. i am using story board i would love if someone reply back fast thanks :)