Director ERROR:Failed to execute new(params) function on 'menu'. Where is my object ?

i cant see my "oyn" object at the screen , and this warning message:

Director ERROR:Failed to execute new(params) function on 'menu'. Waiting For Help :/

main.lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 _H=display.contentHeight;
 
 _W=display.contentWidth;
 
 
local director = require("director");
 
 
local mainGroup = display.newGroup();
 
 
 
local function main ()
 
        mainGroup:insert(director.directorView);
 
        director:changeScene("menu");
        
        return true;
  end
 
main();

please check the spelling

==>> oyn.x=W/2; oyn.y=_H/2;

should be "_W"

KC

thanx :).. i have writing problems :)

like : Refernce it should be Reference :))

views:1402 update:2012/1/1 13:29:50
corona forums © 2003-2011