How to create custom actions?

Im traying to make custom actions,

and i keep getting this:
TypeError: cc.Action.extend is not a function
the same error if i use ActionInstant.

I did use as base code the file “/Cocos/cocos2d-js/frameworks/cocos2d-html5/cocos2d/actions/CCActionInstant.js”

var CustomAction = cc.ActionInstant.extend({

Any clue??
Thanks

Hi,

We don’t support action inheritance in JSB, please use schedule update to control your node through time

Thaks , i used the cc.CallFunc to make a custom sequence.