# Are mp3 files BAAD and loops

**URL:** https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891
**Category:** flash
**Created:** [March 19, 2003, 2:37am UTC](https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891 "2003-03-19T02:37:56Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Troll\_axethrowe](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@Troll\_axethrowe](https://forum.kirupa.com/u/Troll_axethrowe)
#### Post date: [March 19, 2003, 2:37am UTC](https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891/1 "2003-03-19T02:37:56Z")

</div>

Since ive started flash ive noticed that whenever i use an mp3 in a loop it is a real crappy loop, stalling a few seconds before it starts. Is there anyway to fix this other then converting to wav file? Secondly i want to know if there is a way to do an infinit loop, right now my infinit loop is 9999 🙂 , is there anyway to make it actually infinit? Not that its gonna matter i’d just like to know.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 19, 2003, 3:00am UTC](https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891/2 "2003-03-19T03:00:07Z")

</div>

you’re right about the pause in mp3s… its a consequence of the compression. As for infinite looping, setting it to 9999 is pretty much it. You could technically play it as a movieclip and just play the movieclip and have it play looping which would never end and be infinite… 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 19, 2003, 3:04am UTC](https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891/3 "2003-03-19T03:04:06Z")

</div>

there’s another way to make it infinite … =)

```auto
mySound.onSoundComplete = function() {
	mySound.start();
}

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 19, 2003, 3:33am UTC](https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891/4 "2003-03-19T03:33:57Z")

</div>

good call 😉

[size=1]…but wouldnt you use this.start() ?[/size]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 19, 2003, 3:52am UTC](https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891/5 "2003-03-19T03:52:34Z")

</div>

I got this info from [macromedia.com](http://macromedia.com), and it’s the best way keep  
a loop from “skipping” or pausing.

Simply convert it to a .wav. The original file size is going to be  
very large, but believe me, if you set you audio options correctly, it works brilliantly. I took a 1.4mb .wav loop only 2.1 seconds, and got it down to 40k TOTAL!

this is the best way to loop, IMO. 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 19, 2003, 4:20am UTC](https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891/6 "2003-03-19T04:20:52Z")

</div>

how do u use actionscript on the general scene?? All i can select is frames buttons graphics, but not the general actionscript

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 19, 2003, 4:22am UTC](https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891/7 "2003-03-19T04:22:38Z")

</div>

for general, a frame is where you put the code. Otherwise, you  
have to select an object to apply the action.

What I do, is make seperate layer for only actionscript, and set my  
keyframes where I need things to happen along the main  
timeline, in those frames only.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 19, 2003, 5:56am UTC](https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891/8 "2003-03-19T05:56:01Z")

</div>

> _originally posted by **senocular** _  
> …but wouldn’t you use this.start() ?

:sigh: it works as i posted it but … **yes** 😛

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 19, 2003, 9:21pm UTC](https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891/9 "2003-03-19T21:21:47Z")

</div>

where is the soundcomplete thing in the actionscript, i cant find

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 1, 2003, 3:01pm UTC](https://forum.kirupa.com/t/are-mp3-files-baad-and-loops/15891/10 "2003-04-01T15:01:09Z")

</div>

if you use a sound editing prog like cool edit you will notice that when you zoom in to the start/end of an imported mp3 loop there is a small “space”…

this is what causes the click / stall kinda thing…

it is better to cut out the bits you dont need and listen to the sound, once you are happy with the loop save as a wav…

import in2 flash and then use mp3 compression there…

you’ll have to play about with the options here to get the quality of sound that you want…

your loop will play no probs, with no pause or the annoying click sound that you hear with a bad loop…
