Thanks to all you guys for taking the time to try to help. I have to say this is driving me bananas! I know its because I am new to Corona (experienced VB developer) and I am missing something. At the risk of testing everyone’s patience too far, I am enclosing the test program that goes wrong to see if anyone can spot something quickly:
--------------------MAIN.LUA-----------------------------------
display.setStatusBar (display.HiddenStatusBar)
local director = require (“director”)
local mainGroup = display.newGroup()
local function main()
mainGroup:insert(director.directorView)
director:changeScene(“Firstscreen”)
return true
end
main()
----------------------FIRSTSCREEN.LUA-------------------------
module(…, package.seeall)
function new()
local localGroup = display.newGroup()
local _w = display.contentWidth
local _h = display.contentHeight
local backg = display.newImageRect (“blueworld.png”,480,320)
backg.x = _w/ 2
backg.y = _h/ 2
localGroup:insert(backg)
local myline = display.newLine(20, 20, 215,140)
myline.width = 5
myline:setColor( 255, 102, 102, 255 )
return localGroup
end
-------------------CONFIG.LUA-----------------------------------
application =
{
content =
{
width = 320,
height = 480,
scale = “none”,
– fps = 30,
antialias = true,
imageSuffix =
{
["-x15"] = 1.5,
["-x2"] = 2, },
},
}
-----------------------BUILD.SETTINGS--------------------
settings =
{
orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”
},
},
iphone =
{
plist =
{
UIStatusBarHidden=true,
UIPrerenderedIcon = true
},
}
}
As I say this gives me the correct background image but also a largish red rectangle instead of a line.
Thanks
Adrian (in a rainy UK!)
[import]uid: 83824 topic_id: 14990 reply_id: 56134[/import]