overlay sprites

Hello, this is my first post, sorry for my bad english skill. I have this problem in cocos2dx-2.0.4: i want overlay two sprites,but i dont know how. searching i found this thread [[http://www.cocos2d-x.org/boards/19/topics/14745]], he says create a canvas, paste the images and create a new image but doesnt work. Other option i think is work with different layers, en layer A sprite A and layer B sprite B,so overlay sprite B with position of sprite A but this method would consume many memory.
I hope can help me. Thx.

I always use CCLayer to work with multiple sprites. I only use CCSprite if I’m working with single image. You don’t have to worry about if it will consume more memory if you use texture cache.
Just check out this wiki: http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Texture_Cache