Here’s the deal… this following page won’t load. However, if I force an error - say setting a text color to a variable that doesn’t exist, the page loads. What am I doing wrong? I just get a blank screen with no errors when transitioning to this screen.
Thanks for your help!!
[blockcode]
module(…, package.seeall)
print(“Running ----------> addDecks.lua”)
local localGroup = display.newGroup()
local ui = require(“ui”)
local database = require (“database”)
local backgrnd = display.newImage( “background_570_380.png”, true )
local pagename = display.newText(“addDecks.lua”, 0, 0, native.systemFontBold, 16)
local nameprompt = display.newText(“Enter New Deck Name:”, 0, 0, native.systemFontBold, 20)
local pictureprompt = display.newText(“Select New Deck Image:”, 0, 0, native.systemFontBold, 20)
local function initVars()
print(“addDecks … initVars”)
localGroup:insert(backgrnd)
localGroup:insert(pagename)
localGroup:insert(nameprompt)
localGroup:insert(pictureprompt)
backgrnd.x = display.contentWidth / 2
backgrnd.y = display.contentHeight / 2
pagename.x = display.contentWidth / 2
pagename.y = 20
nameprompt.x = display.contentWidth / 2
nameprompt.y = 60
pictureprompt.x = display.contentWidth / 2
pictureprompt.y = 100
pagename:setTextColor( 255,255,255)
nameprompt:setTextColor( 255,255,255)
pictureprompt:setTextColor( 255,255,255)
end
function clean ( event )
print(“addDecks … clean”)
end
function new()
print(“addDecks… Im in the new function!”)
initVars()
return localGroup
end
[/blockcode] [import]uid: 15571 topic_id: 10638 reply_id: 310638[/import]