# Use of \_root & \_parent

**URL:** <https://forum.kirupa.com/t/use-of--root--parent/279988>\
**Category:** Uncategorized\
**Created:** [January 21, 2009, 12:48pm UTC](https://forum.kirupa.com/t/use-of--root--parent/279988 "2009-01-21T12:48:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teel](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@Teel](https://forum.kirupa.com/u/Teel)\
**Post date:** [January 21, 2009, 12:48pm UTC](https://forum.kirupa.com/t/use-of--root--parent/279988/1 "2009-01-21T12:48:15Z")

</div>

Hi, I have this problem:  
I have main timeline with many frames and layers, on frame 25 i have a movie clip named “buttons”, inside it there are 7layers, 3 for movie clips of buttons, 3 for invisible buttons and 1 for actions. I just want that buttons to appear slowly when mouse is over and hide slowly when mouse is down. It’s simple when i would have to do smth like this on main timeline. I just make:  
–\> on actions layer

```auto
_root.picture1.onEnterFrame = function() { 
if (mouse_over_picture1) { 
_root.picture1.nextFrame(); 
} else { 
_root.picture1.prevFrame(); 
} 
};

```

–\> on invisible buttons

```auto
on (rollOver) { 
_root.mouse_over_picture1 = true; 
} on (rollOut) { 
_root.mouse_over_picture1 = fstartlse; 
} on (release){ 
getURL(" http://www.blablabla.com"); 
}

```

But it doesn’t work when it is in “buttons” movie clip, I suppose there’s smth about \_root in the code, I’m not very familiar with AS so I could use your help and appreciate it very much. Thx 🙂
