Using cocos creator to make a simple animation using a plist file

im trying to use this code which i found on this page http://cocos.sonarlearning.co.uk/docs/frequently-asked-questions-2

cc.spriteFrameCache.addSpriteFrames( "spritesheet.plist" );

var coolSprite = new cc.Sprite( spriteFrameCache.getSpriteFrame( "spritesheet.png" ) );	

i get this error;
Cannot read property ‘addSpriteFrames’ of undefined

I want to create a simple flapy wings animation on the main character. This looked so simple at first… Help ME!!! lol thanks in advance

This question has been asked 3 times now, so I am going to close this one. BTW Sonar Learning isn’t an official source of documentation. It is often outdated and seems not maintained now.

The engineering team said to use:

cc.AnimationClip.createWithSpriteFrames([sf1, sf2, ...], fps)

it will return a new animation clip. http://www.cocos2d-x.org/docs/creator/api/en/classes/AnimationClip.html