You have created your star object once and added it 10 times to array:
star=[CCSprite spriteWithFile:@"22.png"];
for(int i=0;i<10; i++)
{
[mySpriteArray insertObject:star atIndex:i];
}
So your array contains the same object and that's the reason of assertion you get.
Vladimir
2010-10-08 12:32:12