# Changing mp3 on flash

**URL:** <https://forum.kirupa.com/t/changing-mp3-on-flash/61837>\
**Category:** flash\
**Created:** [August 22, 2004, 1:58pm UTC](https://forum.kirupa.com/t/changing-mp3-on-flash/61837 "2004-08-22T13:58:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitaeshi](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@kitaeshi](https://forum.kirupa.com/u/kitaeshi)\
**Post date:** [August 22, 2004, 1:58pm UTC](https://forum.kirupa.com/t/changing-mp3-on-flash/61837/1 "2004-08-22T13:58:05Z")

</div>

hi everybody, recently i learn a method of loading mp3 through flash actionscripts loadSound, but i dont have any idea of how to switch to other song.

thxs for viewing

this is my scripts

bgSound = new Sound(\_root);  
bgSound.onLoad = loadedSound;  
bgSound.loadSound(“sos.mp3”,false);  
function loadedSound(){  
\_root.bgSound.start(0,0);  
}

---

<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:** [August 22, 2004, 2:32pm UTC](https://forum.kirupa.com/t/changing-mp3-on-flash/61837/2 "2004-08-22T14:32:50Z")

</div>

i’d store all the .mp3 filenames you want to play in an array…

bgsound.loadSound(array\*,false);

and then just change the value of i through fwd and back buttons

---

<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:** [August 23, 2004, 3:55pm UTC](https://forum.kirupa.com/t/changing-mp3-on-flash/61837/3 "2004-08-23T15:55:53Z")

</div>

can u show me an example like a fla file…thxs 🙂

---

<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:** [August 24, 2004, 9:58pm UTC](https://forum.kirupa.com/t/changing-mp3-on-flash/61837/4 "2004-08-24T21:58:23Z")

</div>

do you want the user to be able to go fowards and backwards between the mp3’s coz if u do you could use the next/previous frame actionscript command to browse the frames that could contain the mp3’s
