# Paths... \_parent

**URL:** <https://forum.kirupa.com/t/paths--parent/83448>\
**Category:** flash\
**Created:** [March 18, 2005, 11:59pm UTC](https://forum.kirupa.com/t/paths--parent/83448 "2005-03-18T23:59:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojojojo](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@mojojojo](https://forum.kirupa.com/u/mojojojo)\
**Post date:** [March 18, 2005, 11:59pm UTC](https://forum.kirupa.com/t/paths--parent/83448/1 "2005-03-18T23:59:43Z")

</div>

I found this great fla file I want to use.

The AS path is \_parent. See the code from the track (on the main timeline) guiding the scrollbar below:

```auto
onClipEvent(mouseDown) {
	if (hitTest(_root.container._xmouse, _root.container._ymouse)) {//test to see if the user has clicked on the scroll track
		if (_ymouse + this._y > _parent.scroll_bar._y + (_parent.scroll_bar._height/2)) {//if where the user has clicked in above the scroll bar, and if so
			_parent.scroll_bar._y += _parent.scroll_bar.largeChange;//move the scroll bar up
		} else {//or if the user click on the scroll track, below the scroll bar, then
			_parent.scroll_bar._y -= _parent.scroll_bar.largeChange;// move the scroll bar down
		}
	}
}
onClipEvent(load) {
	this._visible = false; //hide the track
}

```

Other instances use \_root. I am loading this swf into my main swf. The name of the emptyMC is ‘container’. So I changed \_root to \_root.container. Everything controlled by the \_root function - the up/down arrows work great. But the actual scrollbar, using the \_parent path do not.

I have tried \_this, and just removing \_parent alltogether. I also tried \_root\_container but to no avail.

I cannot seem to find what \_parent is refrencing (IIRC, \_parent targets the timeline above it, but the code is ON the main timeline).

\>\>\>[Grab the fla here](http://www.mojojojo.ca/various/services3.zip)\<\<\<

Any ideas? :sen:
