# Hover madness

**URL:** <https://forum.kirupa.com/t/hover-madness/18314>\
**Category:** Uncategorized\
**Created:** [April 15, 2003, 2:37pm UTC](https://forum.kirupa.com/t/hover-madness/18314 "2003-04-15T14:37:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![akadis](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@akadis](https://forum.kirupa.com/u/akadis)\
**Post date:** [April 15, 2003, 2:37pm UTC](https://forum.kirupa.com/t/hover-madness/18314/1 "2003-04-15T14:37:09Z")

</div>

Hi

Just wondering, I followed the tutorial showing how to make hover captions.

This is my problem:

I have a main movie which calls in another swf ( lets refer to it as ‘external’ ) using ‘loadmovie’.

Now in ‘external’, I have two MC’s. One contains the text box and background for the hover caption. This MC’s instance is named ‘caption’. The other MC is a small image gallery. This has four buttons to which I have attached the actions to make the hover appear. This MC instance is called ‘main’.

Apart from these two MC’s, is the frame with actions:  
startDrag(\_root.caption, true);

Now when I test the movie ‘external’ by itself it works fine. I move the mouse over the buttons and the hover caption appears etc. But when I test the whole movie ie. the main movie calling in ‘external.swf’, the whole of ‘external’ drags instead of just the hover acptions ie. the image gallery ‘drags’.

I have tried a few different things but nothing seems to work. I know it is something small that I have missed but can anyone help?

If I have not explained this well and a link would help, please let me know…

Thanks peeps.  
l8er

---

<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:** [April 15, 2003, 4:27pm UTC](https://forum.kirupa.com/t/hover-madness/18314/2 "2003-04-15T16:27:18Z")

</div>

Hi it’s me again.

Sorry, I’m new here. Just seen a post which has helped me solve part of the above issue.

I have taken the \_root part out of the of the  
startDrag(\_root.caption, true); script.

now the hover captions work fine on my main movie, only now their is no text. I have played around, taking the \_root part out of the other actions in the movie, but nothing seems to work 100%.

Any offers.  
Thanks

---

<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:** [April 15, 2003, 5:02pm UTC](https://forum.kirupa.com/t/hover-madness/18314/3 "2003-04-15T17:02:30Z")

</div>

It’s the old “path” issue…  
If you use loadMovie, that means you load external into a target.  
so you have  
\_root  
…target(containing external)  
…containing caption  
Now it depends where you place your code, if it’s in root, external or…?  
can you post your fla?

---

<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:** [April 15, 2003, 10:06pm UTC](https://forum.kirupa.com/t/hover-madness/18314/4 "2003-04-15T22:06:36Z")

</div>

Hi

Thanks for the reply Eyez.

Ok, here is the situation. I have attached a zip file containing some fla files which are simplified versions of my site files.

I have a swf called ‘main’. An external movie, called ‘external’ loads into ‘main’ via the loadmovie command, into a blank holder MC named ‘blank’. On my site, it is a button action, but for simplicity sake, I have put the action in the first keyframe of ‘main’. So the ‘external’ loads instantaneously. This movie contains a box. Now into this box loads another external movie called ‘external2’, using loadmovie into a target MC called ‘blankexternal’.

Now the script for the hover lies in this movie called ‘external2’. This movie consists of a MC named ‘caption’ containing the hover text field and background and an image gallery with four buttons contained in a MC named ‘main’. These buttons control the images. Now what I would like to happen is when you hover over the buttons, the hover caption appears with text on it.

So far I have managed to get the hover to appear, but with no text on it.

I know this all sounds really complicated but if you check out the files, it might help.

So to recap, I have a movie within a movie within a movie. The hover script is in the ‘granchild’ movie.

Thanks

---

<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:** [April 15, 2003, 10:23pm UTC](https://forum.kirupa.com/t/hover-madness/18314/5 "2003-04-15T22:23:26Z")

</div>

hmmmmm

ever get the feeling you are talking to yourself! 🙂

well i have managed to sort this thing out. silly of me really, but all that i needed to do was to replace the \_root bits with \_parent.

now it sees to be working fine.

cheers

---

<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:** [April 16, 2003, 5:54am UTC](https://forum.kirupa.com/t/hover-madness/18314/6 "2003-04-16T05:54:34Z")

</div>

Glad you figured it out 😉  
(ain’t talkin’ to yaself, just, some pple work daytime 😉 even if we almost are in the same timezone, it might a day to get an answer…  
cheers
