what is wrong with this code

Hi, again

I took this code from the buttons, example and put it in my directory and it does not work. It gives me this error:

The file sandbox for this project is located at the following folder:  
 (/Users/alexdiaz/Library/Application Support/Corona Simulator/Xela Development-4920B0BB4978D0D04A417C445B13E4F2)  
Runtime error  
 /Applications/Xela Development/ui.lua:130: attempt to index local 'button' (a nil value)  
stack traceback:  
 [C]: ?  
 /Applications/Xela Development/ui.lua:130: in function 'newButton'  
 /Applications/Xela Development/main.lua:97: in main chunk  
Runtime error: /Applications/Xela Development/ui.lua:130: attempt to index local 'button' (a nil value)  
stack traceback:  
 [C]: ?  
 /Applications/Xela Development/ui.lua:130: in function 'newButton'  
 /Applications/Xela Development/main.lua:97: in main chunk  
  

Here is the code:

-- Load external button/label library (ui.lua should be in the same folder as main.lua)  
local ui = require("ui")  
  
local send = function( event )  
 print( "id = " .. event.id .. ", phase = " .. event.phase )  
end  
  
local buttonSmall = ui.newButton{  
 default = "images/buttonBlueSmall.png",  
 over = "images/buttonBlueSmallOver.png",  
 onEvent = send,  
 id = "send",  
 text = "send",  
 size = 12,  
 emboss=true  
}  
  
buttonSmall.x = 85; buttonSmall.y = 400  

Could it be that Corona version 703 is not compatible with ui.lua dated 2 Dec 2011?

Thanks [import]uid: 95689 topic_id: 22642 reply_id: 322642[/import]

Do your images exist, and in the images folder and in that exact Upper Case/Lower case naming? [import]uid: 19626 topic_id: 22642 reply_id: 90271[/import]

yes [import]uid: 95689 topic_id: 22642 reply_id: 90273[/import]

robmiracle

You were right just mispelled image names. SOLVED !! [import]uid: 95689 topic_id: 22642 reply_id: 90336[/import]