Can't access application value.

Hi.

I use code on config.lua

---------------------------------------------------------------------------------
application =
{
content =
{
--zoom
width = 768,
height = 1024,
scale = "letterbox",
imageSuffix = {
["@2x"] = 2,
}
},
--- for levelHelper , you can change the value depends on your folder structure
LevelHelperSettings =
{
imagesSubfolder = "assets/sprites",
levelsSubfolder = "assets/scenes",
directorGroup = nil --The group where all objects will be added
},
---- for sprite helper , you can change the value depends on your folder structure
SpriteHelperSettings =
{
imagesSubfolder = "assets/sprites",
levelsSubfolder = "assets/scenes"
},
}
---------------------------------------------------------------------------------

when i try to access the application value such as below,

application.SpriteHelperSettings["imagesSubfolder"].."/"..correctStr;

Compiler said

attempt to index global 'application' (a nil value)

I am using 2011.715 version

Thank a lot.

views:1509 update:2012/1/9 8:53:30
corona forums © 2003-2011