How to make sequences of CCsequence using CCArray ?

Why is this is not working ? What is wrong in doing this ?

m_AnimateCardArr~~>addObject);
>
if{
mCards~~>runAction(CCSequence::create(m_AnimateCardArr));
}

Seems like you want this:

mCards->runAction(CCSequence::create(m_AnimateCardAr-> objectAtIndex(0));

In my game one of my co-worker did this to retrieve animation from animation array. Hope this will help.

CCAnimation *walkAnimation = static_cast<CCAnimation*>(animationArray -> objectAtIndex(0)); CCAction *walkAction = CCRepeatForever::create(CCAnimate::create(animate)); this-> runAction(walkAction);

Thanks bro ! …