# How do I play sound on the splash screen?

**URL:** <https://forum.code.org/t/how-do-i-play-sound-on-the-splash-screen/32648>\
**Category:** Coding and Debugging Help\
**Created:** [May 8, 2020, 10:33pm UTC](https://forum.code.org/t/how-do-i-play-sound-on-the-splash-screen/32648 "2020-05-08T22:33:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carol.ramsey](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@carol.ramsey](https://forum.code.org/u/carol.ramsey)\
**Post date:** [May 8, 2020, 10:33pm UTC](https://forum.code.org/t/how-do-i-play-sound-on-the-splash-screen/32648/1 "2020-05-08T22:33:54Z")

</div>

This is a simple question. How do I playSound() on the splash screen? There isn’t an onEvent for a screen load. There isn’t a start() or static void main() function like in procedural languages.

Thanks,  
Carol

---

<div class="post-metadata">

**Author:** ![jdonwells](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdonwells/32/7900_2.png) [@jdonwells](https://forum.code.org/u/jdonwells)\
**Post date:** [May 8, 2020, 11:10pm UTC](https://forum.code.org/t/how-do-i-play-sound-on-the-splash-screen/32648/2 "2020-05-08T23:10:56Z")

</div>

Your App Lab program is run from top to bottom. onEvent is just a function that gets called. You can add playSound() to the end of the program as a lone statement and it should play that sound when you press run. On your phone it may be different it may not play until you touch the screen in some way.

---

<div class="post-metadata">

**Author:** ![carol.ramsey](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@carol.ramsey](https://forum.code.org/u/carol.ramsey)\
**Post date:** [May 9, 2020, 2:56pm UTC](https://forum.code.org/t/how-do-i-play-sound-on-the-splash-screen/32648/3 "2020-05-09T14:56:41Z")

</div>

Awesome, thanks!

- Carol
