# Stupid Sounds Problem

**URL:** <https://forum.kirupa.com/t/stupid-sounds-problem/84771>\
**Category:** flash\
**Created:** [March 30, 2005, 11:44am UTC](https://forum.kirupa.com/t/stupid-sounds-problem/84771 "2005-03-30T11:44:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikini](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nikini/32/225_2.png) [@Nikini](https://forum.kirupa.com/u/Nikini)\
**Post date:** [March 30, 2005, 11:44am UTC](https://forum.kirupa.com/t/stupid-sounds-problem/84771/1 "2005-03-30T11:44:40Z")

</div>

OK… well i want to play a sound 5 times but not by using

```auto
my_sound.start(0,4);

```

but by making it play until a variable =5;

```auto
function my_start(k:Number) {
	i=1;
	while (i<=k) {
		my_sound.start();
		while (my_sound.position==my_sound.duration) {
			//wait until the sounds stops playing
		}
		i++;
	}
}

```

the problem is… plays the sound twice if k is greater than or equal to 2…if k is 5 it plays 2 times… the first time is normal and the second time plays 4 times at once…why??  
PS: I do not want to use Interval(…) as well…
