# \[FMX\] How to play sound sequentially?

**URL:** <https://forum.kirupa.com/t/fmx-how-to-play-sound-sequentially/162801>\
**Category:** flash\
**Created:** [September 16, 2005, 12:11pm UTC](https://forum.kirupa.com/t/fmx-how-to-play-sound-sequentially/162801 "2005-09-16T12:11:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyware](https://avatars.discourse-cdn.com/v4/letter/c/e480ec/32.png) [@cyware](https://forum.kirupa.com/u/cyware)\
**Post date:** [September 16, 2005, 12:11pm UTC](https://forum.kirupa.com/t/fmx-how-to-play-sound-sequentially/162801/1 "2005-09-16T12:11:42Z")

</div>

[size=2]I’m trying to find a way to play a sound sequentially. In other words, I want to play a sound file from a certain point to a certain amount of time (NOT to the end). So to play a portion of that file.

Now, I know I have to use mySound.start(secondOffset), but how can I stop it?

Sound.onSoundComplete is not useful, as I want to stop the sound at a certain time from playing, which might not be the end.

I guess that the approach is to use the Sound.position property, and to stop the sound when the position meets criteria.

I’ve tried so far all kinds of approaches, like making a loop while the sound plays and checking the Time, but nothing seems to work.

If someone has an idea, kindly post it please.

Basically I need something like mySound.start (secondOffset, amount), where amount=for how long should the sound play.

Thank you in advance.

[/size]
