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