# \_parent target path

**URL:** <https://forum.kirupa.com/t/-parent-target-path/96442>\
**Category:** Uncategorized\
**Created:** [December 9, 2003, 2:47pm UTC](https://forum.kirupa.com/t/-parent-target-path/96442 "2003-12-09T14:47:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrthad](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@andrthad](https://forum.kirupa.com/u/andrthad)\
**Post date:** [December 9, 2003, 2:47pm UTC](https://forum.kirupa.com/t/-parent-target-path/96442/1 "2003-12-09T14:47:03Z")

</div>

Hi All,

Targeting mcs is killing me. I have a mc called Jukebox on my main timeline. Within Jukebox is component code called JukeBoxClass. I am trying to reference a dynamic textbox (lyricsScroller) on my main timeline from my JukeBoxClass code. I can explain better if this is not clear. I thought the code would read something like this.

```auto

//this = JukeBoxClass registry of the component
//1st _parent = Jukebox mc timeline
//2nd _parent = main timeline
//lyricsScroller = my dynamic textbox on the main timeline

this._parent._parent.lyricsScroller;

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 11, 2003, 11:41pm UTC](https://forum.kirupa.com/t/-parent-target-path/96442/2 "2003-12-11T23:41:44Z")

</div>

Ohh ok, I think i know what your trying to do now … so what are you trying to do by calling the dynamic textbox?

PS-have you try’d assigning a \_global variable to it?

Sandman9

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2003, 2:42pm UTC](https://forum.kirupa.com/t/-parent-target-path/96442/3 "2003-12-12T14:42:48Z")

</div>

Hey Sandman. Thanks for your help. The following code did work:

```auto

_root.mcEmpty.lyricsScroller;

```

It still bothers me I couldn’t do it by relative paths.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2003, 5:53pm UTC](https://forum.kirupa.com/t/-parent-target-path/96442/4 "2003-12-12T17:53:22Z")

</div>

well you first try’d “this.\_parent.\_parent.lyricsScroller;” … so instead did you try

\_parent.\_parent.lyricsScroller;  
or  
\_parent.lyricsScroller;

Sandman9

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2003, 6:53pm UTC](https://forum.kirupa.com/t/-parent-target-path/96442/5 "2003-12-12T18:53:15Z")

</div>

Yes. I sure did. It seems like I am only 50% successful with relative paths. A lot of times, as in this case, I have to use hard paths.
