# How to use only 2 buttons for play, stop and resume

**URL:** <https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698>\
**Category:** Questions about Thunkable X\
**Created:** [December 14, 2020, 4:00pm UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698 "2020-12-14T16:00:58Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanisshagunjal](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tanisshagunjal](https://community.thunkable.com/u/tanisshagunjal)\
**Post date:** [December 14, 2020, 4:00pm UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/1 "2020-12-14T16:00:58Z")

</div>

Hi everyone ,  
I am making a music app which needs only 2 buttons so that it won’t be messy. I need these 2 buttons for play, stop and resume.  
If u have any suggestions, please share them with me!

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 14, 2020, 4:24pm UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/2 "2020-12-14T16:24:08Z")

</div>

You can programmatically change the caption of one of the buttons. For example, the button “Play” once pressed, you will check [on source loaded] event and change the caption of the button to “Stop” before playing the file. This way you use one button for both operations.

Of course you need to check for errors and make sure the button displays the correct caption.

In the button [click] event you will check the caption of the button and decide what to do.

Hope this help 😁

---

<div class="post-metadata">

**Author:** ![tanisshagunjal](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tanisshagunjal](https://community.thunkable.com/u/tanisshagunjal)\
**Post date:** [December 15, 2020, 3:10am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/4 "2020-12-15T03:10:59Z")

</div>

oh okay will do that .  
Thank You

Can u pls send me the code as i tried, but it did not work  
Thank You

---

<div class="post-metadata">

**Author:** ![aaminahmansuri59h](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aaminahmansuri59h/32/89753_2.png) [@aaminahmansuri59h](https://community.thunkable.com/u/aaminahmansuri59h)\
**Post date:** [December 15, 2020, 4:36am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/5 "2020-12-15T04:36:17Z")

</div>

@tanisshagunjal Please share your blocks.

---

<div class="post-metadata">

**Author:** ![tanisshagunjal](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tanisshagunjal](https://community.thunkable.com/u/tanisshagunjal)\
**Post date:** [December 15, 2020, 1:26pm UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/6 "2020-12-15T13:26:22Z")

</div>

![Screenshot (60)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1af8c5b3c61ad0edff2ab0e819701dbc3c346edd.png)

---

<div class="post-metadata">

**Author:** ![aaminahmansuri59h](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aaminahmansuri59h/32/89753_2.png) [@aaminahmansuri59h](https://community.thunkable.com/u/aaminahmansuri59h)\
**Post date:** [December 15, 2020, 3:54pm UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/7 "2020-12-15T15:54:10Z")

</div>

I think you have to use if then also.

---

<div class="post-metadata">

**Author:** ![tanisshagunjal](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tanisshagunjal](https://community.thunkable.com/u/tanisshagunjal)\
**Post date:** [December 16, 2020, 3:26am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/8 "2020-12-16T03:26:27Z")

</div>

![Screenshot (11)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/9/499a3d928c7aa86af178bdf35f082babfaed666b.png)

so now its playing and pausing properly…but when i play it again it goes back and starts from the start…it should just resume and i tried putting the resume component after the pause …but didnt work

---

<div class="post-metadata">

**Author:** ![aaminahmansuri59h](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aaminahmansuri59h/32/89753_2.png) [@aaminahmansuri59h](https://community.thunkable.com/u/aaminahmansuri59h)\
**Post date:** [December 16, 2020, 4:16am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/9 "2020-12-16T04:16:03Z")

</div>

@tanisshagunjal You have to use if then else if.  
I hope you understand what I am saying.

---

<div class="post-metadata">

**Author:** ![aaminahmansuri59h](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aaminahmansuri59h/32/89753_2.png) [@aaminahmansuri59h](https://community.thunkable.com/u/aaminahmansuri59h)\
**Post date:** [December 16, 2020, 4:34am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/10 "2020-12-16T04:34:46Z")

</div>

@tanisshagunjal Hey, Your problem was solved?

---

<div class="post-metadata">

**Author:** ![tanisshagunjal](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tanisshagunjal](https://community.thunkable.com/u/tanisshagunjal)\
**Post date:** [December 16, 2020, 4:38am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/12 "2020-12-16T04:38:07Z")

</div>

nope… but sorry to disturb u with all these questions !

---

<div class="post-metadata">

**Author:** ![aaminahmansuri59h](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aaminahmansuri59h/32/89753_2.png) [@aaminahmansuri59h](https://community.thunkable.com/u/aaminahmansuri59h)\
**Post date:** [December 16, 2020, 4:46am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/13 "2020-12-16T04:46:42Z")

</div>

Why?

---

<div class="post-metadata">

**Author:** ![tanisshagunjal](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tanisshagunjal](https://community.thunkable.com/u/tanisshagunjal)\
**Post date:** [December 16, 2020, 4:49am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/14 "2020-12-16T04:49:52Z")

</div>

![Screenshot (12)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/c/5c0aeb6cc3a8589f6b06c90d21fd4ed5b66815b3.png)  
i literally tried everything

---

<div class="post-metadata">

**Author:** ![aaminahmansuri59h](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aaminahmansuri59h/32/89753_2.png) [@aaminahmansuri59h](https://community.thunkable.com/u/aaminahmansuri59h)\
**Post date:** [December 16, 2020, 5:03am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/15 "2020-12-16T05:03:17Z")

</div>

Hey, But why you have used when button click app variable play to true? Please delete that block and then check. May be it works.

---

<div class="post-metadata">

**Author:** ![aaminahmansuri59h](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aaminahmansuri59h/32/89753_2.png) [@aaminahmansuri59h](https://community.thunkable.com/u/aaminahmansuri59h)\
**Post date:** [December 16, 2020, 5:15am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/16 "2020-12-16T05:15:40Z")

</div>

Have you checked, it works?

---

<div class="post-metadata">

**Author:** ![tanisshagunjal](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tanisshagunjal](https://community.thunkable.com/u/tanisshagunjal)\
**Post date:** [December 16, 2020, 5:18am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/17 "2020-12-16T05:18:37Z")

</div>

yup it worked  
thank you

---

<div class="post-metadata">

**Author:** ![aaminahmansuri59h](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aaminahmansuri59h/32/89753_2.png) [@aaminahmansuri59h](https://community.thunkable.com/u/aaminahmansuri59h)\
**Post date:** [December 16, 2020, 5:21am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/18 "2020-12-16T05:21:56Z")

</div>

> [@tanisshagunjal](#):
>
> nope… but sorry to disturb u with all these questions !

Now, Not say afterwards like this. Here everything is easy. If you faced any problem you can ask here(in community?)  
Thanks.

---

<div class="post-metadata">

**Author:** ![aaminahmansuri59h](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aaminahmansuri59h/32/89753_2.png) [@aaminahmansuri59h](https://community.thunkable.com/u/aaminahmansuri59h)\
**Post date:** [December 16, 2020, 5:22am UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/19 "2020-12-16T05:22:49Z")

</div>

I hope you understand.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:19pm UTC](https://community.thunkable.com/t/how-to-use-only-2-buttons-for-play-stop-and-resume/1035698/20 "2024-11-08T12:19:41Z")

</div>


