ActionScript 2.0 :: Make A Player With Multiple Tracks And Songs
Jan 4, 2004
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
View 8 Replies
Similar Posts:
Dec 1, 2004
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.
View 1 Replies
Aug 13, 2009
I have a Flash file that has two music tracks. The player I built works well so far except for this, I am trying to make a Pause/Play button the works on either track. Right now it only works on one. With my limited knowledge of AS3 I tried different solutions but none worked.
Here is the SWF file; [URL]
You will see that the Pause/Play button only works on �Kiss My Dogg� which is track 1.
Here is the FLA file; [URL]
Below is some of the Script I wrote. The pause/play is the part I can�t figure out.
//function to load different tracks
function loadMusic(evt:MouseEvent):void{
//stop whatever is playing
SoundMixer.stopAll();
[Code].....
View 2 Replies
Jan 27, 2009
i want to make a fade volume between songs to songs...this is the function i have made... what's wrong?
Code:
fade.onEnterFrame = function() {
new_volume = 0;[code].....
View 9 Replies
Oct 7, 2009
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
[code].......
View 2 Replies
Mar 1, 2011
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:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.at BACKUPmusikkavspiller_mariuskristian_eksamenRIA_fla::wholeplayer_12/frame3()[BACKUPmusikkavspiller_mariuskristian_eksamenRIA_fla.wholeplayer_12::frame3:6][code3].......
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.
View 1 Replies
Jun 8, 2011
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:
<param name="movie" value="flplayer1a.swf">
<embed src="flplayer1a.swf" FlashVars="xml=<?php echo "members/$id/playlist.xml" ?>"></embed>
<param name="FlashVars" value="xml=<?php echo "members/$id/playlist.xml" ?>">
and here is the actionscript code for the playback on frame 1
stop();
var myFormat:TextFormat = new TextFormat();
myFormat.color = "0xFFFFFF";
[code]....
View 24 Replies
Jul 18, 2011
I have a flash player which can play the songs stored on the Local Server, under "mp3" directory.
I would like to modify this player, so that i can play the songs stored on the remote server, through an API.
Following is the code of the player [code]...
View 4 Replies
Feb 5, 2010
I am new to flash and I am finding a way to use the scrollbar functions to scroll the song names,
Video source. [URL]
View 3 Replies
Jan 4, 2009
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?
View 1 Replies
Aug 6, 2011
I'm about to create some art installation using augmented reality and music. I'd like to implement some kind of sampler in it, but I can't find any way to do it.
It's gonna be a looper, I've got 12 files (each 8 seconds) and I want to play them synchronized - so they must start at the same time. this is example of something similiar to my project[url]... They must be controlled by changing volume (0 means off).
View 1 Replies
Aug 16, 2010
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]
View 2 Replies
Apr 8, 2004
I recently made an mp3 player that reads off of a text file so that users may cycle through a selection of songs. I'm trying to extend it a bit by setting up the mp3 player to display the songs names an their duration (5:45) I'm pretty confident this is possible and I've tried a number of things and read a number of threads and tutorials but I'm still stumped.
[Code]....
View 2 Replies
Jun 10, 2009
New to flash and actionscript. Here's what I'm using:
Flash CS4
Actionscript 2
I'm creating a mixer interface that plays multiple tracks at the same time. I can play and stop all tracks, but I'm having a tough time figuring out how to pause/unpause the tracks. I have a [pause_btn] and an [unpause_btn] just don't know the code to get them working.
[Code]...
View 5 Replies
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?
View 1 Replies
Mar 12, 2009
It is action script 3. As of right now I have a button that plays a song and I have a button that stops a song. The music plays as soon as the file is open. What I am trying to do is upload 3 more songs and add a skip button that will skip to the next song.After the user clicks 4 times it goes back to the 1st songs again.I was going to avoid using a pause, a step back to previous song button and a volume slider. [code]!
View 3 Replies
Jun 9, 2010
What is the script to control the volume of multiple audio tracks embedded within a movie clip?
View 1 Replies
Apr 21, 2004
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?
View 5 Replies
Feb 1, 2011
I'm not sure if this is the right spot for this question but i want to edit an xml flash player so that it creates the playlist with the name i want and not the default. Can some please tell me how to edit this so that when the player locates songs in the folder "my_mp3s" it creates an xml playlist named "mymusic.xml" instead of the default "audioplaylist.xml". I tried to edit the actions script of the player and overwrite the changes but it still doesnt work,
[Code]...
View 7 Replies
Feb 3, 2009
I've downloaded the the Flash mp3 Player. I did some minor modifications to it and it works well. The only problem I have is that when the mute button is pressed, the current song is mute(s.setVolume(0)), but when the next song comes up, the mute button is not in mute state(Volume not set to 0). I want to keep the mute state unchanged when the songs are playing untill the mute button is pressed again.
View 6 Replies
Dec 19, 2009
i want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.
View 1 Replies
Sep 22, 2010
A quick question. Is it possible to play a mp4 video file with 2 audio tracks in it and switch between the two audio tracks? In stead of subtitles we want to provide the user with audio in their own language. As a test I received a mp4 video file with 2 audio tracks, an English and a German. When I load and play the mp4 video file I default hear the English audio track. Is it possible to switch to the German audio track?
View 5 Replies
Jan 12, 2011
I'm a games design student from the UK I'm currently working on a music project. for this I want to create a soundboard where the user can select a multiple number of files and then play them as one track, my plan is to record background, rhythm, melody and random event tracks and have the user select one of these elements from each bank of samples and have a button for them to hear the outcome.So far i can get the soundboard elements to work, but no matter where i look or who i ask no one seems to know how to make this idea work, someone suggested using an array but when i started looking at arrays there seems to tutorials on creating them but not implementing them.
View 2 Replies
Dec 19, 2010
I need to play three musical tracks one after the other in a circle. It is necessary that its are not loaded again and were in the cache. I use this code. Everything works fine on localhost, but only works after restart the app on the server. And wrong to re-download tracks every time.
[Code]...
optObj.music - it is the object with the parameters that is called when the app starts or when i call a function change the settings.
View 1 Replies
Feb 19, 2003
I saw many flash web sites that has multiple music tracks to choose. I would like to learn this nice feature. Is there a tutor? how i can add multiple soundtracks for my flash presentation, I know how to add one soundtrack into my flash movie but i don't know how add several music tracks and how to make button to load one and unload the other.
View 1 Replies
May 26, 2009
I am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album. It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.
Here are the parts for the mediaplayback:
lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {
[Code]....
But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener... I'm just beginning on ActionScripting and I am using parts of what I saw in other codes.
View 2 Replies
Oct 13, 2009
I am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album. It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.
Here are the parts for the mediaplayback:
lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {
[code]....
that is for when you click (or press) on a selected item in the "lista" List.
I tried something like:
for (var i = 0; i<num_total; i++) {
player.setMedia(urlnow+"/"+lista.selectedIndex[i].data, "MP3");
player.play();
}
But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener...
View 1 Replies
Sep 25, 2009
I am looking to replicate the way the music tracks are presented on this website:[URL].. I'd like to create something somewhat similar, in which I can simply type out the name of each track and then have the small Play/Pause button icon. Are there any templates that are packaged with Flash CS4 for something like this? Otherwise, if you could point me in the right direction as to how it is constructed and/or a tutorial for creating. - But is the text that lists the tracks done in HTML? If so, then this is pretty simple really.
View 1 Replies
Sep 5, 2010
I am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album.It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.
Here are the parts for the mediaplayback:
lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {
[code]...
But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener... I'm just beginning on ActionScripting and I am using parts of what I saw in other codes.
View 2 Replies
May 7, 2003
I'm trying to create a music bar that will have next/prev track buttons.I thought of creating an array of the tracks and navigating through the array.Naming the tracks "track1", "track2" etc, start with track1 and increase the number after every pass through the loop. Although I thought of these I could not get the code to work.
View 3 Replies