# FlashMX2004 problem

**URL:** <https://forum.kirupa.com/t/flashmx2004-problem/211492>\
**Category:** flash\
**Created:** [January 2, 2007, 7:49am UTC](https://forum.kirupa.com/t/flashmx2004-problem/211492 "2007-01-02T07:49:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ikonoklast](https://avatars.discourse-cdn.com/v4/letter/i/3be4f8/32.png) [@ikonoklast](https://forum.kirupa.com/u/ikonoklast)\
**Post date:** [January 2, 2007, 7:49am UTC](https://forum.kirupa.com/t/flashmx2004-problem/211492/1 "2007-01-02T07:49:00Z")

</div>

Actually , it’s not aproblem as much as it is lack of understanding ,  
in one of the threads regarding letters following cursor there was this script :  
Text = “Kirupa has the best site on the net!!!”;  
letters = Text.split("");  
letterformat = new TextFormat();  
letterformat.font = “Verdana”;  
letterformat.align = “center”;  
letterformat.size = “10”;  
spacing = 8;  
speed = 3;  
for (var LTR = 0; LTR\<letters.length; LTR++) {  
mc = \_root.createEmptyMovieClip(LTR+“l”, LTR);  
mc.createTextField(letters[LTR]+“t”, LTR, LTR\*spacing, 10, 20, 20);  
with (mc[letters[LTR]+“t”]) {  
text = letters[LTR];  
setTextFormat(letterformat);  
selectable = false;  
}  
if (LTR) {  
mc.prevClip = \_root[(LTR-1)+“l”];  
mc.onEnterFrame = function() {  
this.\_x += (this.prevClip.\_x-this.\_x+5)/speed;  
this.\_y += (this.prevClip.\_y-this.\_y)/speed;  
};  
} else {  
mc.onEnterFrame = function() {  
this.\_x += (\_root.\_xmouse-this.\_x+10)/speed;  
this.\_y += (\_root.\_ymouse-this.\_y)/speed;  
};  
}  
}

and my question is  
what does if (LTR) means ?? ? doesn’t “if” need acondition , or does it mean only the existence of (LTR) , one more thing , I noticed that if i’d delete the “\_root” used in the last two lines the script would still work … so why did we use them in the first place ? ??
