# Employing if to control sequentially 3 mcs\> why doesn´t work?

**URL:** <https://forum.kirupa.com/t/employing-if-to-control-sequentially-3-mcs-why-doesn-t-work/223712>\
**Category:** Uncategorized\
**Created:** [April 25, 2007, 4:59am UTC](https://forum.kirupa.com/t/employing-if-to-control-sequentially-3-mcs-why-doesn-t-work/223712 "2007-04-25T04:59:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![multimediamkt](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@multimediamkt](https://forum.kirupa.com/u/multimediamkt)\
**Post date:** [April 25, 2007, 4:59am UTC](https://forum.kirupa.com/t/employing-if-to-control-sequentially-3-mcs-why-doesn-t-work/223712/1 "2007-04-25T04:59:01Z")

</div>

\*\*I´ve found the following code to control sequentially movie clips

> 

if (c\>=3) {  
c = 0;  
}  
count ++;  
tellTarget (“mc”+ count) {  
gotoAndPlay (2);  
}

there are 3 mcs (instance names : mc1 , mc2 , mc3) to be controlled on the 1st frame of  
main timeline as well as the above code .

it has not worked , the mcs don´t play.  
why ?  
is there something wrong ?  
(tellTarget has been deprecated , I think it has to be changed)  
thank you

\*\*
