Jump to content


Getting a mp3 player to work on the web


  • You cannot reply to this topic
9 replies to this topic

#1 mxgear

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 19 March 2006 - 08:33 PM

Hi guys and thank you Funky Soul for the great tutroial.

My question is how to put the mp3 player on the web. I know i have to upload everything, but I'm not really sure of what to do from there. Please Help!

#2 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 20 March 2006 - 05:15 AM

what can you do from there?

- Upload your own tracks and change the paths on the XML
(keep in mind: Copyrights)
- Customize the player to your needs, graphically
- Reverse Engineering and see how I've built the player

just to mention a few possibilities...

#3 mxgear

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 20 March 2006 - 03:03 PM

Thanks but the problem I'm having is that I don't know how to have the songs play on the web page. The player itself is up but the music does not play. You also said change the xml file path. Could you show me what I have to type in the xml to get the music to play in the mp3 player. Your help would be very appreciated.

BTW, heres the current version.
http://www.angelfire.com/un/mgs/
Thanks

#4 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 20 March 2006 - 03:43 PM

ie.
all your music is saved in a folder called music
and the xml is in the root the path would look like this:

music/yourfile.mp3

I've explained this pretty well on part 1 of my tutorial, maybe you want to go through it first.

PS: I'm not sure if angelfire allows that content on their hosts

Edited by funkysoul, 20 March 2006 - 03:44 PM.


#5 ogrekey

    Young Padawan

  • Members
  • Pip
  • 31 posts

Posted 28 March 2006 - 08:00 PM

I just had a little misunderstanding about that....
The root path.. that could be anywhere on your computer, right?
It doesn't seem to click with me, why there is no.. C://User/documents/whatever/music/file. Or is the "music" folder supposed to be in a certain place?

Edited by ogrekey, 28 March 2006 - 08:01 PM.


#6 DarkSuiyoken

    Young Padawan

  • Members
  • Pip
  • 63 posts

Posted 28 March 2006 - 08:36 PM

the music folder should be at where you saved your swf file.

it has to be in the same folder as where you saved your swf in other words.

#7 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 29 March 2006 - 02:39 AM

thanks for commenting that :P

#8 ogrekey

    Young Padawan

  • Members
  • Pip
  • 31 posts

Posted 29 March 2006 - 02:34 PM

Ah, thank you very much. :D

#9 ogrekey

    Young Padawan

  • Members
  • Pip
  • 31 posts

Posted 29 March 2006 - 05:46 PM

One more question, I created my own, and the playhead starts at the very left of the stage - but I want it to start where my barloader is, on the other side of the stage. what do I do?

#10 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 29 March 2006 - 06:34 PM

setInterval(soundStatus,100);
function soundStatus(){
var amountLoaded = _root.sound_mc.sound_obj.getBytesLoaded() / _root.sound_mc.sound_obj.getBytesTotal();
_root.loader.loadBar._width = amountLoaded * 260;
duration = _root.sound_mc.sound_obj.duration;
position = _root.sound_mc.sound_obj.position;
_root.playHead._x = position / duration * 272 + 5;
}

you should put your playhead movieclip right on the left edge of your own progressbar, if you follow the instruction I'm giving on page7 of the tutorial you will easily manage to do in on your own.

http://www.pixel2life.com/twodded/t_create...part_iii/page7/

Don't forget to change the values corresponding to your loadbar :lol:

Edited by funkysoul, 29 March 2006 - 06:37 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users