# Mouse over goto and play

**URL:** <https://forum.kirupa.com/t/mouse-over-goto-and-play/35131>\
**Category:** Uncategorized\
**Created:** [November 10, 2003, 9:52pm UTC](https://forum.kirupa.com/t/mouse-over-goto-and-play/35131 "2003-11-10T21:52:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Desire](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@Desire](https://forum.kirupa.com/u/Desire)\
**Post date:** [November 10, 2003, 9:52pm UTC](https://forum.kirupa.com/t/mouse-over-goto-and-play/35131/1 "2003-11-10T21:52:24Z")

</div>

i wanna do this thing dunno if its possible but on mouse over (mouse over mi button) i want this clip to play but i want it to play over the top so i dont lose mi button u get me?

on (release) {  
getURL(“main.html”, “\_self”);  
}  
on (rollOver) {  
gotoAndPlay(“flare”);  
}

flare is the name of the layer and the instant name of the clip i want to play.

---

<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:** [November 10, 2003, 10:38pm UTC](https://forum.kirupa.com/t/mouse-over-goto-and-play/35131/2 "2003-11-10T22:38:28Z")

</div>

you can’t load a new html and go somewhere in the original swf.

Not sure what exactly you are trying to do here?

---

<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:** [November 10, 2003, 11:00pm UTC](https://forum.kirupa.com/t/mouse-over-goto-and-play/35131/3 "2003-11-10T23:00:32Z")

</div>

lol i wanted 1 button to go to the main.html but when u just do the mouse over i want this clip i got to play but im guessin from wat u sed i need seperate buttons or summit.

---

<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:** [November 11, 2003, 10:28am UTC](https://forum.kirupa.com/t/mouse-over-goto-and-play/35131/4 "2003-11-11T10:28:30Z")

</div>

You want it to play “over the top”. Huh ?

---

<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:** [November 11, 2003, 12:55pm UTC](https://forum.kirupa.com/t/mouse-over-goto-and-play/35131/5 "2003-11-11T12:55:04Z")

</div>

> u get me?

not really… :-/, could you clear up a bit your explanation, 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:** [November 11, 2003, 2:10pm UTC](https://forum.kirupa.com/t/mouse-over-goto-and-play/35131/6 "2003-11-11T14:10:37Z")

</div>

right here goes again its kinda wired i wud post the .fla but at the min they aint much point.

Well i have this button yeah and i want this button to take me to the url page main.html when i click it (on release).

but as well i want the same button to play a animation when i just roll over the button.

u get me now? help if u can if u still dont get me i just have to scrap the idea.

keep it real  
Desire.

---

<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:** [November 11, 2003, 3:24pm UTC](https://forum.kirupa.com/t/mouse-over-goto-and-play/35131/7 "2003-11-11T15:24:04Z")

</div>

No problem at all, let’s say you have a timeline, and in that timeline you have a movieclip with your animation you want to play, and your button. The movieclip has the instance name ‘mc’ for example and button has ‘btn’.

The first frame of that movieclip is empty and has a stop action, otherwise you’d already see a part of the animation and it’d play already. Don’t think you’re wrong when your first frame isn’t empty, that’d be because you already want people to see the a bit, and then animate it on roll over of the button. Ok.

Place this on your button:

```auto

on(rollOver){
_parent.mc.play();
}
on(release){
getURL("main.html","_self")
}

```

---

<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:** [November 11, 2003, 3:27pm UTC](https://forum.kirupa.com/t/mouse-over-goto-and-play/35131/8 "2003-11-11T15:27:41Z")

</div>

or you could get the new html to load from frame 1 on the movie that you are getting the button to run!

As a frame play action and not a button event action
