# Help with buttons

**URL:** <https://forum.kirupa.com/t/help-with-buttons/26562>\
**Category:** Uncategorized\
**Created:** [July 24, 2003, 5:26am UTC](https://forum.kirupa.com/t/help-with-buttons/26562 "2003-07-24T05:26:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![PunkieDrewster](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@PunkieDrewster](https://forum.kirupa.com/u/PunkieDrewster)\
**Post date:** [July 24, 2003, 5:26am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/1 "2003-07-24T05:26:29Z")

</div>

If i have a movie clip that plays when the mouse is over a button, how do i get it to stop at a point while the mouse is over the button, but then play another part of the clip when the user moves the mouse away from the button?

---

<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:** [July 24, 2003, 5:29am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/2 "2003-07-24T05:29:22Z")

</div>

[AS]on (rollOver){  
clip.gotoAndPlay(frameNumberToStart);  
}  
on (rollOut){  
clip.gotoAndPlay(frameNumberForOutEffect);  
}[/AS]

Just make sure to have a stop() action on frame 1, and the frame right before the out effect.

[edit]oh yeah, and you could use frame labels instead of numbers so it would be easier[/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:** [July 24, 2003, 5:40am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/3 "2003-07-24T05:40:35Z")

</div>

do i just put the movieclip on the scene over the button, or inside the button, on the “over” frame? and also, do i put the script on the movieclip, or on a frame of the 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:** [July 24, 2003, 5:51am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/4 "2003-07-24T05:51:26Z")

</div>

put the script on the button action… you can put the movieclip wherever u want except inside the button… don’t forget to edit “clip” in the action according to your movieclips location… 😉

---

<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:** [July 24, 2003, 6:08am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/5 "2003-07-24T06:08:22Z")

</div>

I’m stumped. Here’s the .fla if someone could help me out. The button is there, “home.” The movieclip is named “homemc.”  
Please help oh great masters of flash.  
[http://www.freewebs.com/8fullhours/index.fla](http://www.freewebs.com/8fullhours/index.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:** [July 24, 2003, 6:17am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/6 "2003-07-24T06:17:47Z")

</div>

can you zip the file or upload here? because your server’s upload is 1kb/s …

---

<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:** [July 24, 2003, 6:18am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/7 "2003-07-24T06:18:14Z")

</div>

that download was going to slow sry  
1.04 kbps on a cable modem? ridiculous, try web1000 🙂

---

<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:** [July 24, 2003, 6:27am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/8 "2003-07-24T06:27:22Z")

</div>

yeah sorry…here ya go…

[http://zerogain.net/hosted/drag36/index.zip](http://zerogain.net/hosted/drag36/index.zip)

---

<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:** [July 24, 2003, 6:42am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/9 "2003-07-24T06:42:45Z")

</div>

ahh, much better, i’ll post back if i made any progress 🙂

---

<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:** [July 24, 2003, 6:56am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/10 "2003-07-24T06:56:59Z")

</div>

i think this is the effect you wanted

---

<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:** [July 24, 2003, 7:06am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/11 "2003-07-24T07:06:26Z")

</div>

PunkieDrewster,

In case you’re wondering why the FLA size has been reduced dramatically…

> _Originally posted by senocular  
> [http://www.kirupaforum.com/forums/showthread.php?s=&postid=191923#post191923](http://www.kirupaforum.com/forums/showthread.php?s=&postid=191923#post191923)_

**[SIZE=3]- Reduce FLA size[/SIZE]**  
Director has and has had a save feature called “Save and Compact” which resaves the file your working on in a way that ditches any unneeded library references from deleted objects and things of the such. Flash doesnt have this option, though that operation simliar to the save and compact feature in Director is performed with Flash files when you File \> Save As… to a new file. So should you need to squeeze out the extras of your FLA (good if you plan to upload it and share it on the web) do a save as first so that you can reduce the file size of a possibly bloated 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:** [July 24, 2003, 7:20am UTC](https://forum.kirupa.com/t/help-with-buttons/26562/12 "2003-07-24T07:20:42Z")

</div>

> \*Originally posted by kax \*  
> \*\*PunkieDrewster,

In case you’re wondering why the FLA size has been reduced dramatically… \*\*

i couldn’t belive the filesize when i downloaded the file:eye:
