I am so stuck right now, because I was trying to get scroll view working in Storyboard. I was fool around with a file / sample app in Corona with scroll view and it the scroll view works find because its not following Storyboard. when I go over to my game I worth storyboard implementation I put my images in the crate screen but when I try to insert the scroll view it doesn’t work . can someone put this file in story board format I would appreciate it a lot. Here is the file
display.setStatusBar( display.HiddenStatusBar )
_**local bg = display.newImage (“bg.png”)
local widget = require( “widget” )
– Our ScrollView listener
local 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
– 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,
}
local worlds = display.newImage (“pink.png”)
worlds.x = 100
worlds.y = 100
scrollView:insert( worlds)
local worlds1 = display.newImage (“pink.png”)
worlds1.x = 100
worlds1.y = 800
scrollView:insert( worlds1)
local worlds2 = display.newImage (“pink.png”)
worlds2.x = 100
worlds2.y = 500
scrollView:insert( worlds2)
local worlds3 = display.newImage (“pink.png”)
worlds3.x = 100
worlds3.y = 1000
scrollView:insert( worlds3)
local worlds4 = display.newImage (“pink.png”)
worlds4.x = 100
worlds4.y = 2000
scrollView:insert( worlds4)**_
I am a newbi to Corona SDK. I would really appreciate if someone would answer my question if you need the file that I put into story board just leave a comment an I edit but I don’t see any reason because it doesn’t work. I just want this file in story board format.
thanks :D :(