# \[FMX\] Button actions

**URL:** <https://forum.kirupa.com/t/fmx-button-actions/23829>\
**Category:** flash\
**Created:** [June 22, 2003, 9:20pm UTC](https://forum.kirupa.com/t/fmx-button-actions/23829 "2003-06-22T21:20:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Psykloak1](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@Psykloak1](https://forum.kirupa.com/u/Psykloak1)\
**Post date:** [June 22, 2003, 9:20pm UTC](https://forum.kirupa.com/t/fmx-button-actions/23829/1 "2003-06-22T21:20:17Z")

</div>

Is there a way to use stop(), play(), gotoAndStop() & gotoAndPlay() with buttons?

Something like  
[AS]btn\_InstanceName.gotoAndStop(“Over”);[/AS]

I guess I could find a way around it but I’d like to know if this is possible.

---

<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 22, 2003, 9:21pm UTC](https://forum.kirupa.com/t/fmx-button-actions/23829/2 "2003-06-22T21:21:40Z")

</div>

What are u trying to use dat for??  
:-\

---

<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 22, 2003, 9:24pm UTC](https://forum.kirupa.com/t/fmx-button-actions/23829/3 "2003-06-22T21:24:53Z")

</div>

I have a navigation bar on my website and it has a bunch of buttons for the diffrent pages on the site. I want the button of the page your on to be lit up when your on that page.

So if your on the “contact” page for example, the contact button would goto the “hit” state to light up.

Like I said there are better waysto do this but I’ve been wondering for awhile now.

BTW, I ment to post this in the “Action Script” section of the forums but I put it here by accident. Sorry(-:…

---

<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 22, 2003, 9:36pm UTC](https://forum.kirupa.com/t/fmx-button-actions/23829/4 "2003-06-22T21:36:32Z")

</div>

Hi,

If you want to do that use a movieclip and switch between two frames. 1 frame for the selected state and the other frame for the unselected state.

I dont think you can reference the frames of a button.

Viru.

---

<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 22, 2003, 9:49pm UTC](https://forum.kirupa.com/t/fmx-button-actions/23829/5 "2003-06-22T21:49:04Z")

</div>

This should help you

---

<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 22, 2003, 10:04pm UTC](https://forum.kirupa.com/t/fmx-button-actions/23829/6 "2003-06-22T22:04:12Z")

</div>

Thanks for the help. Thats what I wanted to do, just wan ted to be lazy. hehe.

Thanks again. :thumb:

---

<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 22, 2003, 10:04pm UTC](https://forum.kirupa.com/t/fmx-button-actions/23829/7 "2003-06-22T22:04:49Z")

</div>

Maybe this one is better

---

<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 22, 2003, 10:11pm UTC](https://forum.kirupa.com/t/fmx-button-actions/23829/8 "2003-06-22T22:11:28Z")

</div>

You’re welcome  
😉
