CCAnimation animationWithName deprecated

Hi,

I’ve seen there that the animationWithName has been deprecated (http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Methods_deprecated_in_cocos2d-101-x-091). I’m trying to translate a cocos2d tutorial to cocos2dx, and it uses animationwithname constructor. How can I then translate this code to cocos2d-x?

CCAnimation *animation = [CCAnimation animationWithName:@“fly” delay:0.1f frames:animFrames];

Thanks