I think I am regressing

Hi,

I have used the following code before in another program, but when I copied it and pasted it on a present program it does not work. Could someone please let me know what I am doing wrong:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local ui = require( "ui" )
 
-- Handler for edit button
local edit_btnRelease = function( event )
        print("nothing yet");
end
        -- display edit button
        
local edit_btn = ui.newButton{
        default = "buttonBlueSmall.png",
        over = "buttonBlueSmallOver.png",
        onRelease = edit_btnRelease,
        text = "edit",
        size = 11,
        emboss=true
        }
edit_btn.x = 200; edit_btn.y = 250

ui.lua and the corresponding images are all in the same place as your main.lua right?

c

Yes !

Never mind, got around it thanks to RAH tutorial !

what was it?

c

I don't know, I got around it by using the button method on this tutorial:" Corona SDK 10: Screen Transitioning ", by Dr. Rafael Hernandez at http://www.youtube.com/user/cheetomoskeeto

views:1527 update:2011/12/31 9:35:10
corona forums © 2003-2011