# Continuous AUDIO over scenes

**URL:** <https://talk.atomisystems.com/t/continuous-audio-over-scenes/506>\
**Category:** Support Questions\
**Created:** [January 9, 2018, 8:29am UTC](https://talk.atomisystems.com/t/continuous-audio-over-scenes/506 "2018-01-09T08:29:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ToanLS](https://talk.atomisystems.com/letter_avatar_proxy/v4/letter/t/46a35a/32.png) [@ToanLS](https://talk.atomisystems.com/u/ToanLS)\
**Post date:** [January 9, 2018, 10:18am UTC](https://talk.atomisystems.com/t/continuous-audio-over-scenes/506/2 "2018-01-09T10:18:37Z")

</div>

Hi,

Current version of Saola Animate doesn’t support it directly from the UI. We’ll consider implement it in future releases.  
In the mean time, please take the following steps to play an audio over multiple scenes:

1. Import the audio file (e.g. song.mp3) into **Resource** pane.
2. Play the audio by using JavaScript code below (you can add this script to any event to execute it):

```auto
	if (!doc.myAudio) {
	    // replace song.mp3 by the audio resource name
	    doc.myAudio = new Audio('resources/song.mp3');
	}
	doc.myAudio.loop = true; // remove this line if don't want to loop
	doc.myAudio.play();

```

Please note that this method only works when exporting to HTML5, doesn’t work when preview (because the url to the resource is differerent).

Regards.

---

_[View the full topic](https://talk.atomisystems.com/t/continuous-audio-over-scenes/506)._
