# Path issue

**URL:** <https://forum.kirupa.com/t/path-issue/317106>\
**Category:** Uncategorized\
**Created:** [December 10, 2010, 4:04pm UTC](https://forum.kirupa.com/t/path-issue/317106 "2010-12-10T16:04:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gspace12345](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@gspace12345](https://forum.kirupa.com/u/gspace12345)\
**Post date:** [December 10, 2010, 4:04pm UTC](https://forum.kirupa.com/t/path-issue/317106/1 "2010-12-10T16:04:24Z")

</div>

I have a button on the main timeline that works fine, part of the code in the button:

```
for (b=1; b&lt; dpth; b++) {
var lineMovedx = _root["Line"+b]._x;
_root["Line"+b]._x = lineMovedx-9000 
trace(_root["Line"+b]);

```

It basically moves stuff a person draws off the screen when the button is pushed, there is another button that brings it back.

But when I put that same button in a movieclip on the main timeline and change the code to this:

```
for (b=1; b&lt; dpth; b++) {
var lineMovedx = _root._root["Line"+b]._x;
_root._root["Line"+b]._x = lineMovedx-9000 
trace(_root._root["Line"+b]); 

```

It no longer works and the trace shows no output, it basically loses it completely, I can’t figure out why it does not work, it seems so simple.
