spriteWithFile deprecated - Correct way to do this ?

Hi all,

I recently downloaded the latest stable version of cocos2d-x. Everithing on my previous projects works fine except that the xcode compiler tells me that the funcion “SpriteWithFile” is deprecated. I searched the “new/correct” way to load a prite from a file and usig a CCRect but I didnt found anyting. Code runs good and it loads the sprite correctly but im afraid that maybe some day it will not work any more.

Should I keep using “spriteWithFile” or there is a new function that replaces it ?

thanks in advance.

create() replaces spriteWithFile().