go to scene when press a button

Change this code:

function myApp.showScreen1() myApp.button4Press = showScreen2 composer.removeHidden() composer.gotoScene("menu", {time=250, effect="crossFade"}) return true end

to:

function myApp.showScreen1() myApp.button4Press = showScreen2 print("Going to 'menu'") composer.removeHidden() composer.gotoScene("menu", {time=250, effect="crossFade"}) return true end

and this code:

local function closeSplash()     display.remove(title)     title = nil     display.remove(logo)     logo = nil     display.remove(background)     background = nil     myApp.showScreen1() end timer.performWithDelay(1500, closeSplash)

to

local function closeSplash()     display.remove(title)     title = nil     display.remove(logo)     logo = nil     display.remove(background)     background = nil print("going to showScreen1")     myApp.showScreen1() end timer.performWithDelay(1500, closeSplash)

Run it and print the results of your console log here.

na Simulator' -no-console YES Note: 'Corona Terminal' is deprecated. You should run the 'Corona Simulator' application instead. 2015-06-30 21:00:49.353 Corona Simulator[8956:2104258] Copyright (C) 2009-2015 C o r o n a L a b s I n c . 2015-06-30 21:00:49.353 Corona Simulator[8956:2104258] Version: 3.0.0 2015-06-30 21:00:49.353 Corona Simulator[8956:2104258] Build: 2015.2646 2015-06-30 21:01:07.747 Corona Simulator[8956:2104258] Copyright (C) 2009-2015 C o r o n a L a b s I n c . 2015-06-30 21:01:07.747 Corona Simulator[8956:2104258] Version: 3.0.0 2015-06-30 21:01:07.748 Corona Simulator[8956:2104258] Build: 2015.2646 2015-06-30 21:01:07.768 Corona Simulator[8956:2104258] Platform: iPhone / x86\_64 / 10.10.3 / Intel HD Graphics 3000 OpenGL Engine / 2.1 INTEL-10.0.31 / 2015.2646 2015-06-30 21:01:07.855 Corona Simulator[8956:2104258] Loading project from: ~/Downloads/RSS Testing 2015-06-30 21:01:07.856 Corona Simulator[8956:2104258] Project sandbox folder: ~/Library/Application Support/Corona Simulator/RSS Testing-25CCCF823BAF6A27BDAF0B1DDE5B1961 2015-06-30 21:01:09.713 Corona Simulator[8956:2104258] going to showScreen1 2015-06-30 21:01:09.713 Corona Simulator[8956:2104258] Going to 'menu'

this is the result 

Can you zip up your whole project and share a link to it here?

Rob

you can get it here

https://www.dropbox.com/s/tc62g0ily5pm619/RSS%20Testing.zip?dl=0

It showed the splash screen, cleared it and then I saw a screen with 10 B&W buttons with green circular backgrounds. This seems to be working without me changing anything.

Are you not seeing this?

is it taking you to the feed page ?

you can see there is feed,lua files on the project numbered from 1 to 10, for me I want the buttons from 1 to 10 to open the feed pages from 1 to 10, and also I want to put a back button to take me back to the main screen 

could you please help me with that ???

I thought you were saying it was not going to the scene with the 10 buttons.

Your buttons are not working because you’re trying to call functions that don’t exist.  For instance:

 local button2 = widget.newButton({ id = "wed\_scn", defaultFile = "wed\_btn.png", overFile = "wed\_btn.png", width = 90, height = 90, label = "", labelColor = { default = { 0.90, 0.60, 0.34 }, over = { 0.79, 0.48, 0.30 } }, labelYOffset = -210, font = myApp.font, fontSize = 18, emboss = false, onRelease = myApp.showScreen3 }) sceneGroup:insert(button2) button2.x = display.contentCenterX - 1 button2.y = display.contentCenterY - 245

You try to call myApp.showScreen3, but that function doesn’t exist anywhere.  BTW:  You don’t need the myApp. on the front of those function calls in this scene.  It was something needed  to make the tabBar work in main.lua.  Just define them as:

local function showScreen3() ... end

above the scene:create() function in menu.lua.

Rob