# Making a Mp3 Player

**URL:** https://forum.kirupa.com/t/making-a-mp3-player/38367
**Category:** flash
**Created:** [December 21, 2003, 11:28pm UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367 "2003-12-21T23:28:49Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![snaxs](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@snaxs](https://forum.kirupa.com/u/snaxs)
#### Post date: [December 21, 2003, 11:28pm UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/1 "2003-12-21T23:28:49Z")

</div>

Hey guys i am making this music player for a site i am making and i want know how can i make does bars that move randomly up and down when the music is playing  
any tut. or an example… 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: [December 22, 2003, 3:57am UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/2 "2003-12-22T03:57:15Z")

</div>

well i can help you with the player part if you need it: [http://www.kirupaforum.com/forums/showthread.php?s=&threadid=40757&highlight=dynamic+mp3+player](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=40757&highlight=dynamic+mp3+player)

---

<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: [December 22, 2003, 5:55am UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/3 "2003-12-22T05:55:21Z")

</div>

Hey thats cool i think i will add some more songs. thanks mann… just need the last part the little bars !:rambo:

---

<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: [December 22, 2003, 7:44am UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/4 "2003-12-22T07:44:35Z")

</div>

If you want real equalizer bars, you need a program that can analyze the song and bring that info into Flash, such as SwiftMP3 for example. Otherwise, you can just tween some bars, or use actionscript to randomly size them.

---

<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: [December 22, 2003, 6:52pm UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/5 "2003-12-22T18:52:06Z")

</div>

no no,… just random bar… not the hard one ::pope:  
yeap i want to make it with actionscript because i want to add some easing but i dont know how :-\ any help or tutorial

---

<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: [December 22, 2003, 7:33pm UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/6 "2003-12-22T19:33:26Z")

</div>

Easing ? Golden formula:

property = target-(target-property)/1.2

or 1.3, or 1.4, … depends on how fast you want it to ease. Example prototype for easing:

```auto

MovieClip.prototype.ease = function(x,y){
this.onEnterFrame = function(){
this._x = x-(x-this._x)/1.2
this._y = y-(y-this._y)/1.2
if(this._x < x+1 && this._x > x-1){
delete this.onEnterFrame
//this is the point where the target x,y has been reached
}
}
}

```

---

<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: [December 22, 2003, 8:13pm UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/7 "2003-12-22T20:13:58Z")

</div>

good,… now that i have my easing code… could y make them by motion tween and to each bar add that ease code ?

---

<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: [December 23, 2003, 11:05am UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/8 "2003-12-23T11:05:04Z")

</div>

> 

could y make them by motion tween and to each bar add that ease code ?

Sorry, what ?

---

<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: [December 24, 2003, 7:10am UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/9 "2003-12-24T07:10:02Z")

</div>

yes you told me that i could make the equalizer by just adding some motion tweens (to the bars )  
could i make each bar into movie clips and and the ease code so they have that effect ?

---

<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: [December 24, 2003, 9:48am UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/10 "2003-12-24T09:48:06Z")

</div>

Yes, you could do that. You’d have to change the y value to ease to all the time, but I think motion tweens will make the movement seem more natural 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: [December 24, 2003, 9:13pm UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/11 "2003-12-24T21:13:57Z")

</div>

Im bored…

---

<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: [December 24, 2003, 9:19pm UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/12 "2003-12-24T21:19:56Z")

</div>

i need some mad cofee-age:sleep: ZzZ

---

<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: [December 24, 2003, 9:23pm UTC](https://forum.kirupa.com/t/making-a-mp3-player/38367/13 "2003-12-24T21:23:53Z")

</div>

when i try to put on my footer i put  
\<HTML\>  
\<OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  
codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0)"  
WIDTH=“552” HEIGHT=“65” id=“BlackAndWhiteDesign” ALIGN=””\>  
\<PARAM NAME=movie VALUE=“BlackAndWhiteDesign.swf”\> \<PARAM NAME=quality VALUE=high\> \<PARAM NAME=bgcolor VALUE=#FFFFFF\> \<EMBED src=“BlackAndWhiteDesign.swf” quality=high bgcolor=#FFFFFF WIDTH=“552” HEIGHT=“65” NAME=“BlackAndWhiteDesign” ALIGN=""  
TYPE=“application/x-shockwave-flash” PLUGINSPAGE=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)”\>\</EMBED\>  
\</HTML\>  
… why wont that work?  
:-\
