# Relative path problems?

**URL:** <https://forum.kirupa.com/t/relative-path-problems/217144>\
**Category:** Uncategorized\
**Created:** [February 23, 2007, 12:46pm UTC](https://forum.kirupa.com/t/relative-path-problems/217144 "2007-02-23T12:46:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinb18](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@martinb18](https://forum.kirupa.com/u/martinb18)\
**Post date:** [February 23, 2007, 12:46pm UTC](https://forum.kirupa.com/t/relative-path-problems/217144/1 "2007-02-23T12:46:29Z")

</div>

what im trying to do is to get buttons to work with on this site [http://www.nwmsltd.com](http://www.nwmsltd.com)  
and now i know exactly whats wrong and what i need to do is basicly put all the code in one place for this to work.  
but im having trouble working out the relative path

i think ive followed it back right and the list below shows the order of MCs  
path to the buttons animation

sp  
sp02  
sp02\_bloc01 - where both intance of **buttons** and **gall** are held  
products111 - instance name of **buttons**  
page\_content\_scroll - instance name of **for\_text**  
pic01 - animation of the btn is on this mc and instance name of **btn1**

path where the code is held for buttons and video (this is the only way i can see to make the ns.close to work)

sp  
sp02  
sp02\_bloc01  
gall - instance name of **gall**  
bid \_p - instance name of **g0**

```auto

_parent._parent._parent.btn1.onRollOver = function() {
 gotoAndPlay("s1");
}
_parent._parent._parent.btn1.onRollOut = function() {
 gotoAndPlay("s2");
}
_parent._parent._parent.btn1.onRelease = function() {
 if (_root.k<>1) { 
  gotoAndStop(1)
   _root.g1 = _root.g;
  _root.g = 1;
  _root.text="01";
  _this.gall.gotoAndPlay("s1");
  ns.close();
 }
}

```

any one know where im going wrong?  
Thanks Martin
