“attempt to call method 'setZOrder' (a nil value)”

I call method setZOrder in lua,the follow error come out:
“attempt to call method 'setZOrder' (a nil value)”
Anybody can tell me why,I really have no idea.

use reorderChild instead,it works.

What’s the cocos2d-x version you use?In the v2.2.2,the setZOrder was already bound to lua .

Still a nil value in v2.2.2.

How did you use the setZOrder function in Lua.

How did you use the setZOrder function in Lua.

I use it like this:my_sprite:setZOrder(order),the log say setZOrder is a nil value.

I used the TestLua/ActionManagerTest/CrashTest of V2.2.2 for test. The script codes that I added as follows:
local function CrashTest() .... child:runAction(CCSequence:create(arr)) --call setZOrder child:setZOrder(0) ... end

No error was triggered.

Ok,I try it again later.