I’m using the Corona sample code from the WidgetDemo and changed tab2.lua to this
[lua]local widget = require( “widget” )
local storyboard = require( “storyboard” )
local slideView = require(“slideView”)
local scene = storyboard.newScene()
– Our scene
function scene:createScene( event )
local group = self.view
local myImages = {
“Avalon1.jpg”,
“Avalon2.jpg”
}
slideView.new( myImages)
group:insert(slideView)
end
scene:addEventListener( “createScene” )
return scene[/lua]
But I get an error:
stack traceback:
?: in function <?:218>
[C]: ?
[C]: in function ‘insert’
…Avalon Guitars(default)/Avalon Guitars/slideView.lua:83: in function ‘new’
…lds)/Avalon Guitars(default)/Avalon Guitars/tab2.lua:23: in function <…lds)/Avalon Guitars(default)/Avalon Guitars/tab2.lua:7>
?: in function ‘dispatchEvent’
?: in function ‘gotoScene’
…lds)/Avalon Guitars(default)/Avalon Guitars/main.lua:43: in function ‘_onPress’
?: in function ‘_setSelected’
?: in function <?:202>
?: in function <?:218>