Hello.
I have a problem with plist (i think)
In HelloWorld demo, i introduce this line:
cc.SpriteFrameCache.sharedSpriteFrameCache().addSpriteFramesWithFile(“Resources/ghosts.plist”);
Also, i tried whith:
cc.SpriteFrameCache.sharedSpriteFrameCache().addSpriteFramesWithFile(“Resources/ghosts.plist, Resources/ghosts.png”);
And in Resources folder i put ghosts.plist and ghosts.png files.
I execute, but alway i have this error:
In firefox: [20:01:15.879] NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMParser.parseFromString] @ http://localhost:8888/cocos2d/lib/cocos2d-html5-alpha-canvasmenu-min.js:694
And in Chrome console:
Uncaught Not a plist file cocos2d-html5-alpha-canvasmenu-min.js:8803
cc.SAXParser.cc.Class.extend.parse cocos2d-html5-alpha-canvasmenu-min.js:8803
cc.DictMaker.cc.Class.extend.dictionaryWithContentsOfFile cocos2d-html5-alpha-canvasmenu-min.js:727
cc.FileUtils.dictionaryWithContentsOfFileThreadSafe cocos2d-html5-alpha-canvasmenu-min.js:702
cc.SpriteFrameCache.cc.Class.extend.addSpriteFramesWithFile cocos2d-html5-alpha-canvasmenu-min.js:5625
cc.Layer.extend.init Helloworld.js:80
cc.Class.extend.f.(anonymous function) cocos2d-html5-alpha-canvasmenu-min.js:21
Helloworld.node Helloworld.js:100
Helloworld.scene Helloworld.js:91
cc.AppDelegate.cc.Application.extend.applicationDidFinishLaunching AppDelegate.js:66
cc.Application.cc.Class.extend.run cocos2d-html5-alpha-canvasmenu-min.js:8752
cc.AppController.cc.Class.extend.didFinishLaunchingWithOptions cocos2d-html5-alpha-canvasmenu-min.js:8875
cc.Loader.shareLoader.onload
The plist is the same of test
I am using the last cocos2d html5 release… I adjunt the source code of my project.
Can you help me?
Sorry for my english
Edu
HelloWorld.zip (112.8 KB)