# One button, Multiple actions

**URL:** <https://forum.kirupa.com/t/one-button-multiple-actions/45173>\
**Category:** flash\
**Created:** [March 11, 2004, 5:36pm UTC](https://forum.kirupa.com/t/one-button-multiple-actions/45173 "2004-03-11T17:36:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekijima](https://avatars.discourse-cdn.com/v4/letter/e/e480ec/32.png) [@ekijima](https://forum.kirupa.com/u/ekijima)\
**Post date:** [March 11, 2004, 5:36pm UTC](https://forum.kirupa.com/t/one-button-multiple-actions/45173/1 "2004-03-11T17:36:01Z")

</div>

**Hello Everyone-**  
Here’s my issue: I have a movie clip on my stage that acts like a presentation. I have a button below it that I want to control which ‘slide’ of the presentation the user sees. Right now when the user clicks the button it takes them to the next slide in the movie clip. I don’t know where to start to have it move on to slide 3 and so forth. So basically everytime the button is clicked it shows the next slide. The movie clip has the appropriate stops and I know which frames I need to activate…I just need help figuring out the Actionscript. [COLOR=blue]Do I need to setup a counter?[/COLOR] [COLOR=crimson]If so, how do I do that?[/COLOR]

**Thanks for any help!**

Erin the Lost :h:

---

<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:** [March 11, 2004, 6:39pm UTC](https://forum.kirupa.com/t/one-button-multiple-actions/45173/2 "2004-03-11T18:39:58Z")

</div>

I don’t know what your setup is like, but from the way I take it I think you need a simple play command on your button to make the playhead continue to the next slide and stop there. I suppose your slides are all in one movieclip, which I’ll call slides\_mc here.

```auto

yourbutton.onRelease = function(){
slides_mc.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:** [March 11, 2004, 6:40pm UTC](https://forum.kirupa.com/t/one-button-multiple-actions/45173/3 "2004-03-11T18:40:00Z")

</div>

Alrighty, I found my answer all by myself (yeah!). But becuase I know that I am not the only Flash newbie out there that will have this question so I am going to let you know where to find the solution…

[http://www.macromedia.com/support/flash/ts/documents/toggle\_flags.htm](http://www.macromedia.com/support/flash/ts/documents/toggle_flags.htm)

Basically I just have one button that I want to do more than one thing with. When I was writing up my description to this question I made the mistake of throwing the word “slides” in to it. I really didn’t have slides, I actually just had one time line with different transitional points that I wanted to control.

If any newbies out there find Macromedia’s document confusing please feel free to contact me and I will share my experience with you.

Erin the Moderately Lost
