How build a mp3 player

Hi, im working for a simple mp3 player.
I have the music on the server, then on the "NEXT" button i
have:
stop member("songm")
member("songm").url = "
http://website.com/music/"&song_list[x
member("songm").play()
the member songm is a shockwave audio, i change the URL
according with the follow list:
song_list=["son1.mp3","song2.mp3", "song3.mp3"]
i must stop each time the member to get the other song
playing, it works very good, but for some reason make the internet
explorer crash, you can see a demo here:
http://www.idolofthebands.com/main/mp3.htm
it plays very good, but if you click on next or prev it
crash, some idea?
ty in advance.

What do you see in the alert box, if you try it with this
line inserted before your stop function?
alert( member("songm") & " state: " &
member("songm").state )
- Ben

Similar Messages

  • Re: How can make mp3 player stop after playing next one?

    Hi! I make one personal web site with mp3 player. So i list songs in table with about 20-30 players on page.
    I want when player1 works and when player2 start playing, than player1 must stop. And that must be for all players (like soundcloud).
    And also, how can i make when the song from player1 finish to start player2 automaticlly?
    This is the code (for all players is same except the id number):
    <script type="text/javascript" src="swfobject.js"></script>
    <script type="text/javascript">
                                  var flashvars = {};
                                  flashvars.repeat="0";
                                  flashvars.playerID="player1";
                                  flashvars.mp3path="melz.mp3";
                                  var params = {};
                                  var attributes = {};
                                  attributes.id = "player1";
                                  swfobject.embedSWF("s5_mp3_player.swf", "player1", "500", "30", "9.0.0", true, flashvars, params, attributes);
    </script>
    <div id="players_wrapper">
      <div id="player1"> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a> </div><br/><br/>
    </div>

    I reeally didn't understand a lot from java :/
    I´m not talking about java, but of Actionscript 3. If you have no programming experience and can`t understand the solution I linked to in my first document, this task will be too difficult for you, trust me. It`s not worth the effort to learn  all that for the only reason of
    I make one personal web site
    I also can`t imagine that anyone has already made an off-the-shelf- solution to control 20-30 mp3 players in the same application. The requirements are a bit......exotic. Sorry

  • How to connect mp3 player to S750 speaker?

    i see it has a usb port . does it just connect? i try but cant get any sound. i using muvo and ipod.

    No, I'm afraid not. The MuVo Vidz isn't M-Port compatible. I believe there's a Aux input at the control pod which you can use with the player.
    Jason

  • Building an MP3 player in Actionscript - almost there I hope...

    Hi. I have the below actionscript almost working for playing mp3s. This isn't dynamic or anything. Just links to songs (from buttons) that should null each other out when clicked on. The first song loads fine. However, the second song will not load. I must be missing something. Or maybe I took the wrong approach? Any help would be great.
    stop();
    import flash.media.SoundMixer;
    var cnl:SoundChannel = new SoundChannel ();
    var SongNumber1:Sound = new Sound (new URLRequest ("song1.mp3"));
    var SongNumber2:Sound = new Sound (new URLRequest ("song2.mp3"));
    song1_btn.addEventListener(MouseEvent.CLICK, song1);
    song2_btn.addEventListener(MouseEvent.CLICK, song2);
    function song1(event:MouseEvent):void {
        toggleSound(cnl);
        cnl = SongNumber1.play ();
    function song2(event:MouseEvent):void {
        toggleSound(cnl);
        cnl = SongNumber2.play ();
    function toggleSound(c:SoundChannel):void {
        if (c) {
            c.stop();
            c = null;
            SoundMixer.stopAll();

    Hey thanks for doing that! I guess I have AS problems elsewhere in the document. I created a clean document and it worked for me. At least I posted some decent code for someone else to use

  • Building MP3 player in Java

    How to build a MP3 player in java using Applet or other interfaces. Is it necessary to include extra classes apart from those in JDK 1.2? Please help me in constructing a MP3 player in Java.

    I forgot the URL :
    http://www.javazoom.net/javalayer/javalayer.html
    An alternative to MP3 could be OggVorbis format.
    We've just made an Ogg Vorbis SPI (Service Provider Interface) for Java based on JOrbis library.
    What is SPI ? It's the way JAVA (through JavaSound API plays sound, regardless to the format.
    In others words we've made a "Vorbis Driver" that could be plugged to ANY Java music player.
    http://www.javazoom.net/vorbisspi/vorbisspi.html

  • MP3 player with times played counter

    Hey, I was wondering if anyone could help me. I'm building an
    MP3 player in Flash for a client. The MP3 player is the easy part.
    However, each track needs to have a counter that tracks how many
    times its been played. Now this will probably require some external
    language as the times played counter needs to hold that information
    even once the user closes out of the window. That's why i can't jut
    use a variable in Flash. If anyone could tell me how its done or
    point to a place that will show me how to do it would be greatly
    appreciated. Thanks.

    if you need total times played for all users you'll need
    server-side code. if your server supports php, that would probably
    be the route to go.

  • MP3 Player Soundfile:UrlRequest problem

    Hello,
    I am building an MP3 player in action script 3, and I need to have the player request a random song file from a folder on my server. There are many song files in the folder, but the purpose is to allow users to rate the songs (at which point ill use ajax for rating). The following code is what I have so far, can anyone help me out?
    import flash.events.MouseEvent;
    btnplay.addEventListener.(MouseEvent.CLICK, playMusic);
    function playMusic(evt:MouseEvent):void
    var myMusic:Sound = new Sound();
    var SoundFile:URLRequest = new URLRequest(----this is where the file would usually go---)
    Thanks in advance! 

    if you have 10 mp3 files in your mp3files folder and the names are like:
    song1.mp3
    song2.mp3
    song9.mp3
    the random part can be like that:
    import flash.events.MouseEvent;
    btnplay.addEventListener(MouseEvent.CLICK, playMusic);
    function playMusic(evt:MouseEvent):void
    var myMusic:Sound = new Sound();
    var rnd:int = Math.random() * 10;  //0-9
    var SoundFile:URLRequest = new URLRequest("mp3files/song" + rnd.toString() + ".mp3");

  • VISION :M MP3 PLAYER, CAR INTERGRATION

    hi guys i have a quick question, do zen vision:m mp3 players have car intergrations which are the things you some how connect the mp3 player to your car so you can listen to your mp3 in ur car except its hooked up to your car or something so everybody can hear it ?
    i know the ipod has it but i dont know if zen vision :m has it, but either way i dont even know how the system works exactly in cars...
    so can anybody plz help me Thanks!

    Thanks for that advice. Is this common, that even when downloading a mp4 video file from Zencast.com I would have to convert it before being able to play it's I would think that Creative would only allow ready-to-play files to be uploaded onto their website.

  • How do I build a simple MP3 player in Flash?

    I have recently redesigned my website and need to make
    several mp3 files available for playback. I'm a voiceover talent,
    and I need to have my demos readily available to those who visit my
    website to hear my work.
    I built the site using Dreamweaver (there's a little bit of
    Flash content there, but the site itself is not a Flash site). I
    know just anough about using Flash to be dangerous. :-) At the
    present time, I just embedded my 11 demos on a page, with each demo
    appearing TWICE -- once with the Windows Media Player embedded and
    once with the Quick Time player embedded -- to allow for maximum
    compatibility. But with 22 media players embedded in the page,
    well, you can pretty much guess what happens -- the page takes a
    freakin' eternity to load. No one's going to wait that long.
    In a previous version of my website, I had deployed a
    third-party app called Wimpy Button to achieve this functionality
    (www.wimpyplayer.com). Wimpy button is a very simple little Flash
    app that is designed to achieve precisely the functionality I need.
    But now when I launch the Wimpy Button Maker (the first step to
    creating the player), I get an error message that I think is
    telling me that either a .dll file required by the program is not
    there on my computer OR that a program I have since installed on my
    computer is either using or has overwritten that .dll file. Either
    way, the Wimpy solution is not working for me. So naturally, since
    Wimpy was doing all this in Flash, I figured the most logical place
    to turn was to Flash itself. I'm hoping to create my own little
    playback interface that I can place in multiple instances on the
    webpage, with each one set to trigger playback of a different .mp3
    file.
    Here's an example of something similar to what I'd like to
    end up with. Visit
    http://randybrown.voice123.com.
    There, you'll see a series of players down the right-hand side of
    the page, and each one triggers playback of a different .mp3 file.
    A closer look at the .swf file can be seen at
    http://voice123.com/swf/small_player.swf
    , so, as you can see, the graphic itself ain't that complicated. I
    know I can build the graphics file (or something similar) without
    too much difficulty.
    But getting it to have the functionality I need to deploy for
    this purpose is where I'm lost. I just don't have enough experience
    with Flash to have much of a clue.
    Can anyone walk me through the steps involved?
    Your thoughtful answer would be MUCH appreciated.
    Randy

    The best MP3 player I ever found for flash uses xspf
    playlists and xml - really cool and easy to use/implement. Check it
    at
    http://musicplayer.sourceforge.net/
    This player will go through a playlist you determine, or can jump
    from track to track. It takes a little bit of testing to set up,
    but is much simpler than writing your own player - and it's free.

  • Got a SONY mp3 player for Christmas: How do I sync with iTunes?

    OK, here's the deal. I have a MacBook Pro and use iTunes regularly, but now I have a SONY mp3 player from Santa. How do I get my songs from iTunes onto my SONY? Someone help. Thanks!

    I have tried this with a SanDisk mp3 player, so I am not sure if it would work with a Sony - don't see why not..
    Open your iTunes, build a playlist of songs you want to put in the Walkman.
    Connect the Walkman and when the icon mounts on the desktop, open the Finder window to it - if it has a .mp3 folder inside, ('cos the sony devices have multiple folders in some instances), open that. Drag and drop the playlist of songs - (the list not the sidebar icon for it) into the .mp3 folder, and it should copy the files right in. iTunes itself will not likely 'see' the Walkman, but the Finder does, and will treat it like a new storage volume - which it is. You just build the iTunes playlists to tell the Finder what to copy.
    Deb.

  • How can I fix 2121 sandbox security error, local swf MP3 player test calls MP3's from website?

    1st Issue.  I am a new user and am fighting #2121, #2044 & #2048 Flash security errors in getting an MP3 player to work as I test the fla file in Flash CS4 on my local computer.  The fla in Flash and swf in Dreamweaver calls mp3 files from our host server on the internet.
    After reading various sparce posts and Adobe articles on this issue, I have added a crossdomain.xml file at our websites root (see file below) and added the code, flash.system.Security.allowDomain in line 1 of the action script of the flash fla to allow our site access (-see script below).  These efforts have helped get the player to work better on our test site.
    But, I am still getting the 2121 error within Flash CS4 as I debug the player or play the swf in live view within Dreamweaver.  Playing the fla or swf will lock-up the Flash 10 player and crash the program. I am having the mp3 player access the mp3 files from our web site as I test the fla.
    Here is the debug message I am getting:
    Attemping to launch and connect to Player using URL C:\Web Site Files\Plank Productions afc\Plank Productions 2010\site\MP3_List_Player_AS3.swf [SWF] C:\Web Site Files\Plank Productions afc\Plank Productions 2010\site\MP3_List_Player_AS3.swf - 209827 bytes after decompression SecurityError: Error #2121: Security sandbox violation: Sound.id3: file:///C/Web%20Site%20Files/Plank%20Productions%20afc/Plank%20Productions%202010/site/MP3%5FList %5FPlayer%5FAS3.swf cannot access . This may be worked around by calling Security.allowDomain.
    at flash.media::Sound/get id3()
    at com.afcomponents.mp3player::MP3Player/get id3()
    at com.afcomponents.mp3player::MP3Player/handleBuffe ring()
    Here is the crossdomain xml code:
    <?xml version="1.0" encoding="utf-8"?>
    <?xml version="1.0"?><!DOCTYPE cross-domain-policySYSTEM "http://www.macromedia.com/xml/dtds/cross-domain- policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="www.plankproductions.com" secure="false"/>
    <allow-access-from domain="plankproductions.com" secure="false"/>
    </cross-domain-policy>
    Here is the AS3 in line 1 of the Fla file that I added:
    flash.system.Security.allowDomain("www.plankproductions.com", "plankproductions.com");
    2nd Issue.  The online playback of the mp3 player will play about 4-7 mp3’s then lock-up in Internet Explorer 8 on a pc.  I think that is related to flash security, not sure, I do not know how to debug the mp3 player on the web site.
    http://plankproductions.com/pptemplate_afc_mp3.shtml
    Questions.
    -How can I resolve the error 2121?
    -What as3 code do I need to target the local c drive to have security clearance and work properly, is this the problem?
    -Why is the mp3 player locking up on the web page?
    Thank you in advance for any help.
    Operating System: Windows XP Professional, CS4 Web Premium

    Do you have the standard or debug player installed?  Such errors should not occur with the standard player.
    See http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html#main_Find_Flash_Play er_version_type_and_capabilities__Flash_developers_only_

  • I have copied my CDs into iTunes  (currently running v11) to play on my iPod.  I have now bought a non Apple mp3 player to use when I am out running.  How can I copy the many tracks I want from iTunes onto the new player?

    I have copied my CDs into iTunes  (currently running v11) to play on my iPod.  I have now bought a non Apple mp3 player to use when I am out running.  How can I copy the many tracks I want from iTunes onto the new player?
    Thanks

    I tried Notpod but can't get it to work.  Part of the problem, I suspect, is that I can't create a folder on my player (a SanDisk Clip+).  I also can't do this in Windows Explorer.  Whilst I can see the Clip+ in Explorer, the option to create a new folder isn't there.
    The error mesag I get in Notpod is:
    "Unhandled exception has occurred in your application.  If you click Continue, the application will ignore this error and attempt to continue.  If you click Quit the application will close immediately.
    InvalidArgument=Value of '0' is not valid for 'SelctedIndex'. Parameter name: SelectedIndex"
    Then, when I plug the Clip+ into a USB port, iTunes thinks it is my iPad - which is because, I guess, Notpod hasn't worked.
    I can drag and drop files from the Music folder where my iTunes tracks are stored onto the Clip+ and they get converted but I'd rather synchronise a Playlist from iTunes if I can.
    Thanks anyone who can help

  • How can I copy my iTunes library over to my MP3 player?

    I have all of my songs saved in my iTunes library and on my iPad.  How am I able to get this transferred over to my Sony MP3 player?

    Read the diresctions for your mp3 player.

  • How can I use Iphone 4 as an mp3 player without a sim card until I get one?

    Hi,
    How can I use Iphone 4 as an mp3 player without a sim card until I get one? I just bought the phone and each time I try to switch it on to use the mp3 player, I cannot. It asks me to insert a sim card and I don't have a sim card yet. I was thinking I could use the mp3 player function of my phone until I buy a sim card.
    Thank you for your help in advance,

    Thank you, I understand, yeah, I knew that, my phone is factory unlocked and I am going home, which is obviously not in the States and I am thinking of buying a local carrier there. However, I still have 2 weeks before I leave and cannnot wait to start using my Iphone 4. I thought at least I could use the mp3 player function. So as far as I understand, I cannot activate it without a sim card. I have been using metropcs for about two years and it does not have a sim card. In this case, do I really not have another choice but wait for two weeks to listen to music? My Mp3 player just failed me and I really need to listen to music but on the other hand, while I can use my iphone as an mp3 player in two weeks, I don't want to spend more money on a new one. So, do you have another suggestion? For instance, can I use a friend's sim card to activate mine? Would this cause any trouble, when I go home and buy a local carrier? I think these questions might kinda sound weird to you, but first time with an Iphone, extremely excited to start using under my circumstances, I need help   thanks,

  • How to transfer all music in my Zen Micro to either my PC or another mp3 player....help ple

    i have a creative micro zen with about 000 handpicked and some very hard to find songs on it...i don't really have trouble with the player itself, just the software and the continous problems seems like everyone is having with something... my question is this..........if i wanted to get another mp3 player as a backup in case this one crashes, then what does everyone think about one of the smaller ipods? what about their software and such? and, if i do decide to get an ipod, then how would i transfer all these 000 mp3 songs onto the new ipod? would there be an issue with the fact that they are not bought from itunes?? would it not be safe to do that? and if it is okay to do that,? how would i transfer the songs back onto my PC, as i have tried everything suggested on this board recently in trying to do that using Mediasource and it just won't work even after downloading all new plugins etc. if someone has an idea about this, please let me know step by step if possible about how i can get these songs that are valuable to me from my zen micro, to my computer, and then onto another mp3 and if ipod (nano for instance) is a wise choice or if there is another player in the same category that others have found they have waaaay less problems with and better support/service with it's?any help anyone gives would be greatly appreciated!? i appreciate all the suggestions to my other questions as well!?thanks,barb

    for a new mp3 player, i would get this one, its awesome (and the one i would get if i had a choice instead of my microphoto that broke)... here's a link
    http://reviews.cnet.com/Samsung_YP_T9_4GB_black/4505-6499_7-3208083.html the 4gb one is $80, the 2gb one is $30... so thats cheaper than an ipod, and much better features and stuff

Maybe you are looking for