How to put sliderVBiew widget into the storyboard?!

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>

Whoops!   A crime has been committed.

Sorry.

I forgot to copy the navbar.png file into my project.   

But now I get

stack traceback:

    ?: in function <?:218>

    [C]: ?

    [C]: in function ‘insert’

    …lds)/Avalon Guitars(default)/Avalon Guitars/tab2.lua:24: 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>

Fixed it - DOH! - I’m a bit embarrassed.

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”
        
    }
     
   local sv = slideView.new( myImages)
   group:insert(sv)
   
end
 
scene:addEventListener( “createScene” )
 
return scene

Whoops!   A crime has been committed.

Sorry.

I forgot to copy the navbar.png file into my project.   

But now I get

stack traceback:

    ?: in function <?:218>

    [C]: ?

    [C]: in function ‘insert’

    …lds)/Avalon Guitars(default)/Avalon Guitars/tab2.lua:24: 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>

Fixed it - DOH! - I’m a bit embarrassed.

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”
        
    }
     
   local sv = slideView.new( myImages)
   group:insert(sv)
   
end
 
scene:addEventListener( “createScene” )
 
return scene