# Button Hit Area doesn't Work on LoadMovie

**URL:** <https://forum.kirupa.com/t/button-hit-area-doesnt-work-on-loadmovie/65367>\
**Category:** flash\
**Created:** [September 25, 2004, 3:08pm UTC](https://forum.kirupa.com/t/button-hit-area-doesnt-work-on-loadmovie/65367 "2004-09-25T15:08:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeldarb](https://avatars.discourse-cdn.com/v4/letter/y/51bf81/32.png) [@Yeldarb](https://forum.kirupa.com/u/Yeldarb)\
**Post date:** [September 25, 2004, 3:08pm UTC](https://forum.kirupa.com/t/button-hit-area-doesnt-work-on-loadmovie/65367/1 "2004-09-25T15:08:22Z")

</div>

I have 2 swfs (as you usually do when using loadMovie ;), one main swf, and one that gets loaded. The one that gets loaded is an order form. It works flawlessly (well pretty much as good as that, still some bugs, but they’re not the problem) by itself, but when I load it, the button hit frames don’t work, and also the tooltips don’t work. Anyone know any reason that these wouldn’t work?

Thanks  
Yeldarb

(BTW, I searched, didn’t find anything)

---

<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:** [September 25, 2004, 3:49pm UTC](https://forum.kirupa.com/t/button-hit-area-doesnt-work-on-loadmovie/65367/2 "2004-09-25T15:49:57Z")

</div>

simple its a pathing issue. eg. When you load a swf say main.swf with a sub.swf into it. the sub swf doesn’t recongnize the path since the path has changed. it should be main.sub.swf kind’ve like that.  
so if you load the sub.swf into main.swf with the loadMovie command it should look like this i think.  
main.loadMovie(“sub.swf”, 1);  
or you could use  
\_root.loadmovie(“sub.swf”,1);  
root referring to one level up  
I’m not good with AS but that is for sure the problem. U should do a search on \_root, \_parent, this in kirupa to learn more on pathing.

---

<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:** [September 25, 2004, 3:59pm UTC](https://forum.kirupa.com/t/button-hit-area-doesnt-work-on-loadmovie/65367/3 "2004-09-25T15:59:23Z")

</div>

Thanks, but I used all relative paths in the swf to be loaded in, no \_root 😉 just \_parent once, and then just this for the rest, so I don’t think that’s the problem.

---

<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:** [September 25, 2004, 4:02pm UTC](https://forum.kirupa.com/t/button-hit-area-doesnt-work-on-loadmovie/65367/4 "2004-09-25T16:02:37Z")

</div>

I just found the problem… I accidentally had a this.onRollover in the frame, and when it was by itself it didnt do anything because this was \_root, but when it got loaded in, this turned into the movieclip so it overrode the buttons inside 🙂
