# MP3 or songs in flash

**URL:** <https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462>\
**Category:** flash\
**Created:** [June 18, 2003, 10:52am UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462 "2003-06-18T10:52:46Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![SilentFlasher](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@SilentFlasher](https://forum.kirupa.com/u/SilentFlasher)\
**Post date:** [June 18, 2003, 10:52am UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/1 "2003-06-18T10:52:46Z")

</div>

How to make a 4MB mp3 song into flash which load faster on the website? is it we must change the format of the mp3 to the other format?

plus how about loading the file how to make certain or any file in flash website to be load when it needed only?

can somebody help me? how to view my flash footer or signature here?

---

<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:** [June 18, 2003, 11:19am UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/2 "2003-06-18T11:19:23Z")

</div>

Hi there,

Listen, MP3 is the music format most use on the net!  
That´s because it´s a compress file , and with the right software you  
can make it small with quality…

About your other question,  
Check this link :

```
  http://www.kennybellew.com/

```

There you will find everything about MP3 and Flash.  
😏

---

<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:** [June 18, 2003, 1:05pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/3 "2003-06-18T13:05:20Z")

</div>

You could also try to get ahold of mp3pro and convert the mp3.  
[mp3pro](http://www.mp3pro.ws/)

I use it with my pocketpc and I can store 1 cd on 32mb in good quality. :geek:

---

<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:** [June 18, 2003, 6:56pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/4 "2003-06-18T18:56:16Z")

</div>

na you should be loading xternal sounds

[http://www.delusionalfx.com/tutorials/xternalsound.htm](http://www.delusionalfx.com/tutorials/xternalsound.htm)

---

<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:** [June 18, 2003, 9:07pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/5 "2003-06-18T21:07:50Z")

</div>

This might be a dummy question, but how do you download the MP3 file from [Flashkit.com](http://Flashkit.com)?  
I have no problem download its .WAV or Flashtrak (it has 3 file versions), but when I click the .MP3, it will open the browser window with QuickTime sign and gray playing bar??? How do I work around that to download the MP3?

---

<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:** [June 18, 2003, 9:15pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/6 "2003-06-18T21:15:21Z")

</div>

lmao right click + save target as…

---

<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:** [June 18, 2003, 9:48pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/7 "2003-06-18T21:48:17Z")

</div>

as for your signature here’s what to post in your profile

```php

<embed src=http://www.yourfooterfile.com/file.swf height=60 width=300 type=application/x-shockwave-flash>

```

change the values - and height and width shouldnt be larger than the values mentioned

---

<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:** [June 19, 2003, 3:25pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/8 "2003-06-19T15:25:25Z")

</div>

How do you loop(or repeat) externally loaded MP3 sound? I thought it’s:  
mysound.start (0,999);  
but it does not loop at all.

---

<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:** [June 19, 2003, 4:54pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/9 "2003-06-19T16:54:43Z")

</div>

yes that is the correct code, make sure your code looks like this:  
[AS]  
mySound = new Sound();  
mySound.loadSound(“yourSound.mp3”, true);  
mySound.start(0,999);  
[/AS]

that is correct

---

<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:** [June 19, 2003, 6:29pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/10 "2003-06-19T18:29:29Z")

</div>

Well, I made the fla with only One ON button and code for it:

on(release){  
mySound = new Sound();  
mySound.loadSound(“pianoland.mp3”, true);  
mySound.start(0,999);  
}

I swear it does not repeat. What’s wrong?

Thanks for all of your help.

---

<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:** [June 19, 2003, 6:55pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/11 "2003-06-19T18:55:38Z")

</div>

lol well I believe you man. i have to leave work now, why don’t you just post your fla in a zip file and I will look at it. I’m almost sure that’s the code to loop, unless when you stream it is different, but again, I have done this numerous times, without a problem. Post your fla and within the next 2 hours I wil be able to fix for you.

---

<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:** [June 19, 2003, 7:20pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/12 "2003-06-19T19:20:54Z")

</div>

Thanks for looking over. Sometime I wonder if it’s MP3 itself turned off loop, but I simply downloaded from flashkit.

I was not allow to download because MP3 is too big, even zipped.

Just change my MP3 file name.

Thanks

---

<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:** [June 19, 2003, 9:06pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/13 "2003-06-19T21:06:16Z")

</div>

ok well first off i appologize… i did some research. here is what i found.

> yeah, when you’re loading sound and set streaming to true, you can’t control the start properties or delay properties (or scrubbing)… it’s the disadvantage of using streaming sound… it starts to play as soon as it has the appropriate amount of info…

i’d have to say that that is pretty gay. anyway here is a code that will work  
[AS]  
loopSound = function () {  
mySound.loadSound(“test.mp3”, true);  
};  
mySound = new Sound();  
mySound.loadSound(“test.mp3”, true);  
mySound.onSoundComplete = loopSound;  
[/AS]

however there is a gap between loops ☹ cant seem to do anything about that. if you want your song to loop, I would suggest loading it via [AS] mySound.attachSound(“test.mp3”);[/AS] but that of course will make your .swf huge unless you have a small sound. i hope i have helped 🙂

---

<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:** [June 19, 2003, 9:07pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/14 "2003-06-19T21:07:10Z")

</div>

ok and if at worst case just make your sound fade out at the end, and fade in again to avoid that pause between loops

---

<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:** [June 19, 2003, 9:28pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/15 "2003-06-19T21:28:50Z")

</div>

Thank you very much, Digitalosophy, for digging this out for me. It loops now. Guess I will find out how to do fade out fade in the sound.

---

<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:** [June 19, 2003, 9:31pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/16 "2003-06-19T21:31:04Z")

</div>

no prob, if you get stuck let me 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:** [June 20, 2003, 7:41pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/17 "2003-06-20T19:41:36Z")

</div>

Well, I did get stucked. I looked at Kenny Bellew’s tutorial and made up the following code (all put on first frame of main timeline), and no sound at all. Do not know what’s wrong: [http://www.kirupaforum.com/forums/newreply.php?s=&action=newreply&threadid=26188#](http://www.kirupaforum.com/forums/newreply.php?s=&action=newreply&threadid=26188#)  
[http://www.kirupaforum.com/forums/images/smilies/frustrated.gif](http://www.kirupaforum.com/forums/images/smilies/frustrated.gif)

mySound = new Sound();  
mySoundVolume =0;  
mySound.setVolume(mySoundVolume);

//fade in:  
this.onEnterFrame = function () {  
if (fadeIn01==1) {  
mySound.setVolume(mySoundVolume);  
mySoundVolume = mySoundVolume+2;  
if (mySoundVolume\>99) {  
fadeIn01=0;  
}  
}  
};

//fade out 5 sec. from the end of song  
this.onEnterFrame = function () {  
songDuration = \_root.mySound.duration / 1000;  
songPosition = \_root.mySound.position / 1000;  
fadeEnd = (songDuration-5);  
if (fadeEnd \<= songPosition && mySoundVolume\>0 && playing==true) {  
if (mySoundVolume\<=1) {mySoundVolume=0}  
mySound.setVolume(mySoundVolume);  
mySoundVolume = mySoundVolume-1;

```
	}

```

};

//“On” button:  
btn\_On.onRelease = function(){  
loopSound = function () {  
mySound.loadSound(“pianoland.mp3”, true);  
};  
fadeIn01=1;  
mySound.start(0,999);  
mySound.loadSound(“pianoland.mp3”, true);  
mySound.onSoundComplete = loopSound;  
};

//“Off” button:  
btn\_Off.onRelease =function(){  
mysound.stop();  
};

Thanks.

---

<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:** [June 20, 2003, 7:53pm UTC](https://forum.kirupa.com/t/mp3-or-songs-in-flash/23462/18 "2003-06-20T19:53:31Z")

</div>

wow okay i just got home give me a few and i will fix.
