Help understanding action

Hi All,

I’ve been reading and reading and I’m just not getting it…

When I loop through my words Array how would I check if any of thewords have an action still running against them?

HelloWorld::addword() {

     CCLabelBMFont *word = CCLabelBMFont::create(words[randomNum], "arial.fnt");
     word->setPosition(ccp(spawnX,spawnY));

     this->addChild(word)

     CCFiniteTimeAction* actionMove = CCMoveTo::create(6, ccp((CCDirector::sharedDirector()->getVisibileOrigin().x + actualX), _finalY));

     word->runAction(actionMove);
     actionMove->setTag(1);
     word->setTag(1);

//Add word to CCArray
_words->addObject(word);
}

Found the solution myself.

if(currentWord~~>numberOfRunningActions)
{
currentWord~~>stopAllActions();
currentWord->setPosition(ccp(finalx,finaly));
}

Thanks