# Mouseover effect

**URL:** <https://forum.kirupa.com/t/mouseover-effect/24408>\
**Category:** Uncategorized\
**Created:** [June 30, 2003, 3:50pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408 "2003-06-30T15:50:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![worm](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/worm/32/235_2.png) [@worm](https://forum.kirupa.com/u/worm)\
**Post date:** [June 30, 2003, 3:50pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/1 "2003-06-30T15:50:15Z")

</div>

how would i get a mouseover effect that calls up an external swf file to a specific position in a movie. Plz dont think im lazy here, it s just that i’ve been trying for god knows how long withoug any success.  
thnx

---

<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:** [June 30, 2003, 7:00pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/2 "2003-06-30T19:00:01Z")

</div>

I reread what i posted and it seems a bit confusing (even to me). Let me try and make myself clearer, what i meant was how do u load a movie to a specific x, y location. Hope this makes it clearer

---

<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:** [June 30, 2003, 7:06pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/3 "2003-06-30T19:06:16Z")

</div>

you can use a script like this:

```auto
on (rollOver) {
	_root.createEmptyMovieClip("emptyMC", 2);
	_root.emptyMC.loadMovie("external.swf");
	_root.emptyMC._x = 145;
	_root.emptyMC._y = 120;
}

```

It will create a empty movie clip at those x and y cordinates and load your external swf into that empty movieclip.

---

<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:** [June 30, 2003, 7:10pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/4 "2003-06-30T19:10:07Z")

</div>

thanx man, but I want to use this with a mouseover effect. i.e.  
nefurthr help?

---

<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:** [June 30, 2003, 7:13pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/5 "2003-06-30T19:13:51Z")

</div>

Look at the script again, I edited it for mouseover.

---

<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:** [June 30, 2003, 7:21pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/6 "2003-06-30T19:21:34Z")

</div>

thanx man but is this advisable especially since most users have 56k modems

---

<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:** [June 30, 2003, 7:23pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/7 "2003-06-30T19:23:36Z")

</div>

If you’re concerned about loading time then optimize your external movie and add a preloader to it.

The script above just handles how it’s going to be loaded, it has nothing to do with how fast it’s going to load.

---

<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:** [June 30, 2003, 7:30pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/8 "2003-06-30T19:30:20Z")

</div>

i already have a preloader :\>  
but since u mentioned it, my movie is a tad bit fat around the waist. could u point me to a tutorial on optimization.  
thnx again. :trout:

---

<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:** [June 30, 2003, 7:33pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/9 "2003-06-30T19:33:01Z")

</div>

There are many factors when trying to optimize a movie so there’s a lot you’ll need to know. Here is a thread that covers a lot of it. Some of it might not apply to your setup, but hopefully some of it will.

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17594&highlight=optimize](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17594&highlight=optimize)

---

<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:** [June 30, 2003, 8:27pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/10 "2003-06-30T20:27:01Z")

</div>

new problem, when i navigate to a completely different area of the movie, the clips still show up on top of everything else. how do i prevent this from happening?  
I tried using the regular unload function but nothing!

---

<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:** [June 30, 2003, 8:35pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/11 "2003-06-30T20:35:23Z")

</div>

To unload the movie, you would use a script like this

```auto
on (release) {
	_root.emptyMC.removeMovieClip();
}

```

---

<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:** [June 30, 2003, 8:42pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/12 "2003-06-30T20:42:56Z")

</div>

heres the site. navigate to the samples section and click the “view portfolio” button.  
edit: after u run ur mouse over the text in the scroll pane (they r actually buttons) then navigate away from that section of the site, the loaded movie remains.

> **[Yahoo Small Business - Cheap Domains, Web Hosting, Website Builder, Ecommerce...](https://smallbusiness.yahoo.com/)**
>
> Yahoo Small Business Offers Cheap Domain Names, Web Hosting, Easy Website Builder, Business Email, Local Listings, and Ecommerce Solutions for Your Small Business.

---

<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:** [June 30, 2003, 8:45pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/13 "2003-06-30T20:45:30Z")

</div>

ok, so what’s the problem?

EDIT: just read your edit.

---

<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:** [June 30, 2003, 8:49pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/14 "2003-06-30T20:49:03Z")

</div>

Make sure you apply the unload script I posted above to the buttons so that when it’s clicked, it will unload that movie.

---

<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:** [June 30, 2003, 8:56pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/15 "2003-06-30T20:56:24Z")

</div>

oh thanx, i solved my problem, i used the

```auto
on (rollout)

```

function to empty the clip.  
thnx again man.

---

<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:** [June 30, 2003, 8:58pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/16 "2003-06-30T20:58:06Z")

</div>

Oh I didn’t know you wanted to be set on rollOut. 😛 Well I’m glad you solved it. =)

---

<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:** [June 30, 2003, 9:27pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/17 "2003-06-30T21:27:01Z")

</div>

now im thinking that it might not be such a good idea to use mouseout for movies that are loaded from external sources cuz chances r; no one will probably see it.  
so heres the deal. I think i read some where about loadingand ‘hiding’ content into one area of ur movie and calling for them when needed (in this case by using the “on mouseover” command)

edit: do u happen to know how to do this. sure u do. right? :crazy:

---

<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:** [June 30, 2003, 9:29pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/18 "2003-06-30T21:29:32Z")

</div>

you can hide the movieclip by setting it’s \_visible property to false, soemthing like this.

```auto
on(rollover){
_root.emptyMC._visible = false;
}

```

---

<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:** [June 30, 2003, 9:41pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/19 "2003-06-30T21:41:57Z")

</div>

let me make myself clearer. when for example, ur on a wevsite that uses flash and ur mouse goes over an object and it causes a mini movie (if u will) to play inside the main movie instantly, this suggests that the mini movie is apart of the movie but just wasnt called for yet. How is this achieved.

note: forgive the exescive layman terminology, i couldnt think of the correct flash terms to use. (4give me im new to flash)

---

<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:** [June 30, 2003, 9:44pm UTC](https://forum.kirupa.com/t/mouseover-effect/24408/20 "2003-06-30T21:44:53Z")

</div>

There are a few ways to do this, what I would do is in that “mini movie” have a empty frame at the beginning with a stop() action placed so that it doesn’t automatically play.

Now since it has a empty first frame, there is nothing showing yet. When you want it to show up, just have an action to tell that mini movie to play().

So when it goes to the next frame of that mini movie, it will now show up.

[Next page](https://forum.kirupa.com/t/mouseover-effect/24408.md?page=2)
