CCArray problem!

Hi!
I need to add seven diffrent sprites from frames to an array.
But how should i do that in a for loop or something like that, just please give me some examples:)

And then how to load them all in another for loop…:;ok
I will appreciate your help!(/)

Use CCARRAY_FOREACH(arr,obj)
and cast each obj to sprite with
CCSprite *pSprite = dynamic_cast(obj);

example is in this link.
http://www.cocos2d-x.org/wiki/Chapter_5_-_How_to_Detect_the_Collisions

Thanks!:slight_smile: It Worked