Skip to content

Resources being removed from cache #1328

Open
@adamlwgriffiths

Description

@adamlwgriffiths

Loading an animation using cc.spriteFrameCache causes the resource to be removed from the loader cache.
This makes work arounds for dynamically loading frame names from plists (an unbelievable oversight in the API) a hit-and-miss affair as resources disappear.

 64     _getFrameConfig : function(url){
 65         var dict = cc.loader.getRes(url);
 66 
 67         cc.assert(dict, cc._LogInfos.spriteFrameCache__getFrameConfig_2, url);
 68 
 69         cc.loader.release(url);//release it in loader

http://www.cocos2d-x.org/reference/html5-js/V3.2/symbols/src/_Users_panda_StudyWork_Cocos_cocos2d-js_frameworks_cocos2d-html5_cocos2d_core_sprites_CCSpriteFrameCache.js.html

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions