hey guys i am having a small problem with my scroll view i have some code that scroll my levels up when the person swipe up or down the screen. when i try to insert the scroll view to an image the image doesn’t show up in story board,but i played around and worth the code with out story board and it worked but when i put it in story board it don’t work instead in the terminal/console i get “error bad argument #2 to display.newImage():width expected, but got no value”. here’s my file
THANKS FOR THE HELP 
local widget = require( “widget” )
—local titlebar = “no title bar”
local storyboard = require(“storyboard”)
storyboard.purgeOnSceneChange = true
local scene = storyboard.newScene()
function scene:createScene(event)
local screenGroup = self.view
– Create a ScrollView
local 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,
}
– Our ScrollView listener
function scrollListener( event )
local phase = event.phase
local 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
– background
background = display.newImage(“bg 2.png”)
background1 = display.newImageRect( “level01.png”)
–backgound1.x = 100
–background1.y = 100
–[[world1 = display.newImage (“world1.png”)
world1.x = -70
world1.y = 100
–worldIntro = transition.to(world1,{time=1000, x=70, onComplete=resumeReady})
home = display.newImage(“home.png”)
home.x = 40
home.y = 40–]]
worlds = display.newImage (“pink.png”)
worlds.x = 100
worlds.y = 100
worlds1 = display.newImage (“pink.png”)
worlds1.x = 100
worlds1.y = 800
scrollView:insert( worlds1)
worlds2 = display.newImage (“pink.png”)
worlds2.x = 100
worlds2.y = 500
scrollView:insert( worlds2)
worlds3 = display.newImage (“pink.png”)
worlds3.x = 100
worlds3.y = 1000
scrollView:insert( worlds3)
worlds4 = display.newImage (“pink.png”)
worlds4.x = 100
worlds4.y = 2000
scrollView:insert( worlds4)
end – end of create scene
function worlds1(event)
if event.phase == “began” then
print “world1”
storyboard.gotoScene(“levels”,“fade”,100)
end
end
function homeUp(event)
if event.phase == “began” then
print “world1”
storyboard.gotoScene(“menu2”,“fade”,100)
end
end
function scene:enterScene(event)
–world1:addEventListener (“touch”, worlds1)
– home:addEventListener (“touch”, homeUp)
end
function scene:exitScene(event)
end
function scene:destroyScene(event)
end
scene:addEventListener(“createScene”,scene)
scene:addEventListener(“enterScene”,scene)
scene:addEventListener(“exitScene”,scene)
scene:addEventListener(“destroyScene”,scene)
return scene
can some one help out with this i love the help thanks i am new to corona sdk thanks
please help i need this