CCCallFunc* CCCallFunc::actionWithScriptFuncName(const char* pszFuncName) { CCCallFunc *pRet = new CCCallFunc(); if (pRet && pRet->initWithScriptFuncName(pszFuncName)) { pRet->autorelease(); return pRet; } CC_SAFE_DELETE(pRet); return NULL; }