Create A Music Player Where One Can Upload Songs From Any Computer On The Web And Play Them Back
May 31, 2011
I'm looking to create a music player where one can upload songs from any computer on the web and play them back... is this possible and if so how would I go about creating it?
I've been messing with this for almost six hours now and am at the end of my wits. I need a flash mp3 player that follows the following guidelines:
*all encased within its own movie clip *loads four different songs, one after the other (event) *each song displays its own loader *user scrolls through song selection and plays available (loaded) ones *first song plays when loaded and continues to the others
any tips on where to go with this? do I create four different sound objects since later songs are loading while the first are playing?
to have an embedded .swf on a website that can play music located on the users computer? in other words, can a .swf have a dialog box that asks the user to select an .mp3 on their own computer? what i am hoping for is to be able to have users play their music and have the .swf act as a visualizer.
Im new to the AS3 game but I need some help with something. I have built a pretty good website mp3 player but it plays the songs in order. I want the the mp3 player to play a different song everytime it loads.[code]
How do you create a streaming MP3 Player with multiple songs? My dilema is not getting the song to play but how do you create it so that no matter which song its on it will go to the very next one? like if it is song 3 go to 4. Because that would be a variable that would constantly change.
I have problem with the code below. its a flash mp3 player. I need to prevent it from autoplay from the start. but keeps on playing all the tracks after the user click on play. How can i fix this?
Code: import flash.filters.DropShadowFilter; var infostruc:Array = []; var xmlData:XML = new XML();
I am new to AS3, and I am trying to make an XML music player. For reasons unknown, the music player that I have coded (GUI was made an placed on the stage, so coding for those are not included.) will not display text or play the music. The code I have so far is:
var my_songs:XMLList; var my_total:Number; var my_sound:Sound;[code]....
I wanted to create an interesting music player that would show an animation that would basically open like a door, then show you buttons for each song to be played. I made the music play by creating the buttons with the music in the "Down" frame of the button. This worked great, it played my music and played music when you pressed another button. However the problem lies with having music playing and clicking on another button. Both songs play at the same time.
To fix it I looked around to find a command that would stop all music playing when any button was clicked so that when music was playing, and you clicked a button for another song, the previous song would stop playing, and play the next song. However all the commands I tried gave me errors, or they made the button unable to start the song.
I'm using Flash CS4 and I have a jukebox coded in AS3 to play songs 1-4.
If I click publish preview>Flash, everything works fine. The songs load, play, and can have their volumes adjusted.
If I export a swf file and the associated html file, along with the songs in the same directory structure as they were on my computer (in an audio folder in the same directory as the swf), the graphics show up, but the music doesn't play when I click the song buttons.
what I may have done wrong to go from a working publish preview of flash to a non-functional swf and html on the web?
At the moment, I am attempting to make a music player that will play a specific song of my choosing. I am stuck at the part where you can pause the sound, and then play it in the same place. I have tried many things such as using the timer utilities. Right now, when I pause it, it stops, and when I press play, it plays from the beginning. stop(); var channel:SoundChannel; var soundCheck:Boolean = true; var song:Sound = new Sound(new URLRequest("song.mp3")); channel = song.play(); [Code] .....
I'm trying to make a simple music player with only one button for Play & Pause the music. What I have now is a MovieClip with:
1st Keyframe: active state for play Button 2nd Keyframe: active state for pause button 3rd Keyframe: hover state for play button 4th Keyframe: hover state for pause button
The script works OK, and play and pause the music without problems as expected.
The problem comes after the second click in the play/pause button when the alternance between two states becomes chaotic. The button never returns to the play state although the music was paused.
This is the code:
/**** Objects and Vars ****/ var AutoPlay:Boolean = false; var isPlaying:Boolean = false;
Im trying to create a flash music player much like the one at [URL].. but I cant seem to get it to load the swf files that are the songs and im stumped as to why. Ill post my player .fla and .txt file playlist along with my test swf song if anyone
I want to play the music file in flash player (which is embedded obviously) by clicking the play button which is in the web page (not in flash player).
I am making flash CS4-based music player with ActionScript 3. When I host the player on my site, e.g. [URL], and play an mp3 on the server of my site, e.g.[URL], it works well.
When I link to an mp3 of another site, e.g. [URL], in my local machine, it also works. However, when I host the music player in my site [URL], and play an mp3 of [URL], then it can't be played.
I just need something simple, where there is only pause, play and stop buttons. I usually load the music within the flash movie and play from there, but I would like to build one where if you press play, the music loads and plays streaming on the spot. I have got a couple of more complex streaming style mp3 players but I would like to use a simplified streaming version. Any recommendations or code that I can just add to a button?
I have a website banner made in Flash. I have added a music file to it and Play and Stop buttons. I also have a Replay button to replay the banner animation once it stops.
I have put the music on a separate frame so that it will not play automatically when the banner loads. I have made the Play button direct to the frame the music is located at so that when clicked, it will go to that frame and play the music file.
The problem I am currently having is that if I click the Play button more than once, it will play the music file again on top of the current play-through.
So if I click Play, the music will play. Then if I click it again, the music will play again, but on top of the first instance of the music, so two instances of it will now be playing and it sounds horrible.
I would like to make it so that if you click Play when the music is playing, it will not play the music again until the music has stopped.
I have got three screenshots below of Flash-based audio players on various websites that draw a waveform of the clip it is going to play and moves along while it is playing and also allowing the user to click on a point on the audio file and it jumps to that point.I have very little Flash knowledge but is this easy to achieve? I would like to just show the Flash file an mp3 and it draws the waveform. I understand this could be quite intensive on CPU so would there be a way of caching the waveform data so it doesn't redraw each time the file is loaded?
I was trying to make a media player with AS3 coding.. I know how to make play, pause, next buttons etc.. And i also learned to load playlist from a XML file (created mannually)..What i actually need is to browse the computer and select multiple files and add those files to a playlist.. All these must be done with the media player itself(not manually typing the XML data).. XML file dynamically by selecting the music files, using the player.. Or is there some other method to create playlist without making the XML?..
i am fading images into view using tweens, however the images flicker during the tween when i play them back in the flash player. Does anyone have any thoughts, advise, work-arounds?? Cheers
Ive imported an FLV into a Project. Some computers wont play the video back if the Flash Player is set to Full Screen. The screen goes black during Full Screen. If you set the player to regular, you can see the video playing (embedded into design) but once you set player to Full Screen the video plays on its own right at centre of screen. Im working on a Touch Screen Display that has the display set to Portrait mode. Im investigating if the display card is causing the problem.
I'm having issues with this array I setup for a MP3 player I am creating. First I'm trying to plug in the array in the URL Request, not sure if I need a for loop. Also in my onComplete Function below, I want once one song is finished in the Array, the next item in the array plays or if there are no more items left it goes back to the first item in the array. Not sure if I am setting this up properly
var songArray:Array=["song1", "song2", "song3", "song4", "song5", "song6"]; var songReq:URLRequest = new URLRequest("mp3_files/song" + songArray + ".mp3"); var song:Sound = new Sound();var channel:SoundChannel;var pausePosition:int = 0; // var
I found this nifty code (here) for an MP3 player that uses XML/URLRequest to load the songs in.I'm trying to implement this code on my own application, and I've run into a couple of errors.I've got the XML loaded into the application, and it's showing up in a List component.But it's not letting me to play songs from it quite yet.This is the error I'm getting:
I've read something about IOErrorHandlers, but I'm not quite sure how to use them, where to put them and what to read from them..If needed I'll paste my full code. The original code is from here <-, as posted above.
I have a music community website, visitors can sign up, upload mp3 files, their files get uploaded into their own folder named '$id' in the php code, (if they are the 10th member to sign up, their folder would be named 10, and so on)
I have a prebuilt flash player that I want to playback the mp3 files just for that member when their profile is being viewed, I have some code in the mp3 upload script that automatically writes an xml file to their folder containing their song data, with Andrei1's help, I got that part working using flashvars, now the problem I am having is that I can't get the songs to play back, the data is there but no music.
as I said I am using a prebuilt flash player that is using a static call to a directory, so should I use flashvars again to load the mp3 files into the player? and I also need help figuring out what to change in the actionscript.here is the object embed src for the html:
I am making a photo slideshow with music playing in the background. I have the first song in so it plays as soon as the slideshow starts. I want more than one song to play. I would like a new song to start as soon as the old song is complete. I tried creating another music variable underneath the first code but that didn't work. How can I add more songs so when one song ends the next one starts playing?
where on this site or another site can I find a good in dept tutorial or tutorials on control over music and sound IE loading, playing, and so on. I know the basics but im trying to make a player with multiple tracks and songs that are too big to just place in the flash movie