# Spreadsheet with images and sound

**URL:** <https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611>\
**Category:** Questions about Thunkable X\
**Created:** [June 14, 2018, 5:41pm UTC](https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611 "2018-06-14T17:41:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)\
**Post date:** [June 14, 2018, 5:41pm UTC](https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611/1 "2018-06-14T17:41:40Z")

</div>

Thanks to answers from the community my test with spreadsheet works.  
But not exactly as I thought.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/2/c2f6a3947ff037f77a73e19647536cbbf88b3631.png)

The app works. But first only the image is displayed with no sound. Only after a second click on the button plays the sound.  
After displaying a different image the first sound plays. Again after a second click the correct sound plays.

What is wrong?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 14, 2018, 5:48pm UTC](https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611/2 "2018-06-14T17:48:19Z")

</div>

Yes, such a problem exists with sound. I think the problem is that after changing the file name, the Sound component does not have time to load the resource before playing it (or need use block Sound.stop). It seemed to me that the onSourceLoaded block for this purpose is intended, but it does not work. Try the Sound.Stop block before of the “from Sound set source” block.

---

<div class="post-metadata">

**Author:** ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)\
**Post date:** [June 14, 2018, 5:56pm UTC](https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611/3 "2018-06-14T17:56:56Z")

</div>

Sorry, does not work…

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 14, 2018, 5:59pm UTC](https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611/4 "2018-06-14T17:59:35Z")

</div>

I did not find a reliable way to work with sound. In one case, I have a short sound effect and the song worked normally, and in the other case, two long sound files did not want to be played properly.

---

<div class="post-metadata">

**Author:** ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)\
**Post date:** [June 14, 2018, 6:03pm UTC](https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611/5 "2018-06-14T18:03:48Z")

</div>

Solved:  
I put the sound call play block into the when sound onSourceLoaded block.  
So the sound is played, when loaded.  
Thank You!

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 14, 2018, 6:06pm UTC](https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611/6 "2018-06-14T18:06:36Z")

</div>

It is interesting. I’ll try this block again.

---

<div class="post-metadata">

**Author:** ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)\
**Post date:** [June 14, 2018, 6:33pm UTC](https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611/7 "2018-06-14T18:33:53Z")

</div>

![02](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/2/229bf2727dd37910a52580d9e4a3b1723e9b0e68.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 14, 2018, 6:41pm UTC](https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611/8 "2018-06-14T18:41:46Z")

</div>

Do you have this project running on Android? I do not call the Sound.onSourceLoaded block on iOS 10.3 at all, neither when using a local resource nor when specifying a URL.

---

<div class="post-metadata">

**Author:** ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)\
**Post date:** [June 14, 2018, 7:06pm UTC](https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611/9 "2018-06-14T19:06:54Z")

</div>

you are right. it really works in Android only. Not in IOS.

---

<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:02pm UTC](https://community.thunkable.com/t/spreadsheet-with-images-and-sound/31611/10 "2024-11-08T12:02:27Z")

</div>


