[Resolved] How to parse the file named .plist in cocos2d-html5

How to parse the file named .plist in Cocos2d - HTML 5 ?

Hi wang,

The details about how to parse plist file at: https://github.com/cocos2d/cocos2d-html5/blob/develop/cocos2d/sprite_nodes/CCSpriteFrameCache.js

and the details about how to use plist file at: https://github.com/cocos2d/cocos2d-js-tests/blob/master/tests/SpriteTest/SpriteTest.js

for example:
spriteFrameCache.addSpriteFrames("aPlistfile.plist", s_ghosts); //need preload before using. var l1 = cc.Sprite.createWithSpriteFrame(spriteFrameCache.getSpriteFrame("aSpriteFrameName.png")); l1.setPosition(cc.p(winSize.width / 2, winSize.height / 2)); aParent.addChild(l1, 0, TAG_SPRITE2);

hopes that helps
David

thank you