I need BUTTON HELP! I have the button and event thing but WHAT IS THE EVENT FOR THE BUTTON TO SEND ME TO A CERTAIN .LUA file.

heres my code
 
local widget = require( “widget” )
 
local bg = display.newImageRect( “TAPTOPLAY.png”,480,320)
bg.x, bg.y = display.contentWidth / 2, display.contentHeight / 2
 
local button1Press = function**(WHAT DO I PUT IN HERE!!!?!?!?!?!? )**
    t.text = "Button 1 pressed

end

WHAT DO I PUT BY FUNCTION? 

Are you using Storyboard? If so then it will be something like the following : 

storyboard.gotoScene( "newScene", options )    

im not can u give me some code for story board button

Many good tutorials here : 

http://www.coronalabs.com/resources/tutorials/user-interface-scenes-and-widgets/

Please direct any further responses to this question here:  http://forums.coronalabs.com/topic/41853-i-need-button-help/

Thanks!

Rob

Are you using Storyboard? If so then it will be something like the following : 

storyboard.gotoScene( "newScene", options )    

im not can u give me some code for story board button

Many good tutorials here : 

http://www.coronalabs.com/resources/tutorials/user-interface-scenes-and-widgets/

Please direct any further responses to this question here:  http://forums.coronalabs.com/topic/41853-i-need-button-help/

Thanks!

Rob