Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Dynamic Flash MP3 Player



I am in the process of building a dynamic site, using php and MySQL DB, which will feature music bands. I want to have the option for people to listen to their music. I want to put a flash mp3 player in (don't know if I should purchase one or build one from scratch and suggestions) to play the music. So here is the problem: how do I get one flash file to pull a specific xml file, for the music titles and songs, based on a URL id. Or if anyone know of another way to do this I would love to hear.
Thanks



ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 06-07-2006, 07:36 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Dynamic Flash MP3 Player - Help
I'm trying to create a dymanic mp3 player


We need a player that we can add an m3u to the actual flash file, rather
than reading it from xml. For example, a user clicks on an m3u link, then
this m3u gets added to the player.

2 options that would work:

1 - the player can be interacted by javascript. so when a user clicks on a
link, the m3u gets added directly to the player's list via javascript code,
without having to submit to the server.

2 - when a user clicks on a link, it submits a request to the server, which
reloads the player with the new m3u link added, so the client gets an
updated version.

Basically, there will be different people using the player simultaneously, and each will have different m3u links in their
player's playlist, which get changed dynamically on each sample link clicked
by the user.

So basically the way this can work is, if we can send data from the server to the client's player which is an m3u link, and the player will update the list with the new m3u link added.

the grapically interface will be created by soeone else all we need is the coding done.

Dynamic Flash Mp3 Player
Hello,

ok, so I know how to make an mp3 player and can import XML easily, and this is all I can find info and tutorials on, which is simple.

The problem I am having is how do you load an swf and have that swf read the url to see what it needs to play? For instance, say I want to click on an image or link, which directs me to a popup or different page with my swf, and I want a certain mp3 to play at this time. How do I go about this? Does anyone have any tutorials or info on this? I have a bunch of mp3's in my directory and can use xml, however this wouldn't allow me to have just the certain mp3 to play like I want it to do, it would only allow the xml list to play even with it randomized this would just bring up different mp3's. I want one mp3 to play when the link is played and the mp3 I am requesting thru the url.

Dynamic Flash MP3 Player
I am in the process of building a dynamic site, using php and MySQL DB, which will feature music bands. I want to have the option for people to listen to their music. I want to put a flash mp3 player in (don't know if I should purchase one or build one from scratch any suggestions) to play the music. So here is the problem: how do I get one flash file to pull a specific xml file, for the music titles and songs, based on a URL id. Or if anyone know of another way to do this I would love to hear.
Thanks

Dynamic Flash MP3 Player
I am trying to implement a dynamic MP3 player for a client. You can see the older, static version here:
http://www.kenbarken.com/musiclibrary/index.html (select Music Library on the right side).

Click the top shelf, then click the CD titled Fourhundred. Currently when a user clicks one of the track names, it loads an external SWF which contains an MP3 player. Each album is a seperate scene in the master movie which as you might guess, significantly increases export and load times.

I've implemented a database of albums along with the appropriate code to pull in that information. The problem I'm running into is loading the MP3 files. In my version, when you click a CD on the shelf, it passes an ID to a new scene, which then loads all of the information for that CD. I'm able to get all of the track info, including the MP3 file name. I pass that file name to my MP3 player which then loads the MP3. I can load all 4 tracks AND play them successfully. The problem that arises when I go back to play the first track is that I get nothing.

I REALLY need to figure out what's going on but I am stuck. This is the first time I've ever worked with loading MP3 files and as far as I'm concerned, one of the last. Flash makes it so difficult to load in dynamic content that sometimes it doesn't seem to be worth the time. If anyone is interested in taking a look at the source files here's a link. There are 3 FLAs in the zip file, one is the current working version (library2.fla), one is a different attempt using some custom AS code from a friend of mine (NEWlibrary.fla) and the last is the original MP3 player code I found on Flashkit that I've modified (MP3Player.fla). Also included in this zip file are generic MP3 files named after the song titles I'm working with. Remember that the test CD is Fourhundred. on the top shelf.

I would be ETERNALLY grateful for any help at this point.

Dynamic Flash Audio Player
Does anyone know of a free flash audio player that can be used to dynamically load different audio file types into it? I'm looking for something that when clicking a link on the page calls a javascript function that will get the requested .mp3, .wav etc. and load it into the flash player. I want the player to have a controller as well for the user to puase, stop, start etc...

If anyone knows of something out there that already exists I would be extremely grateful. I don't want to have to try and reinvent the wheel.

Thanks

Flash 8 Player - Dynamic Jpg's Not Displaying.
Hi there,

Has anyone else experienced this issue and if so has anyone got a fix?

Basically, I am using loadMovie() to load a dynamic jpg into a simple movieclip. When you go to view the website using the Flash 8 player the image doesn't display. However, if you are using the new flash 9 player the image displays fine.

The information is being pulled from an oracle database, via coldfusion and flash remoting. The information is obviously being returned as the images are infact displaying in flash player 9 and also the text being returned from the same query is also being displayed correctly.

Any help or ideas will be great.

cheers

the whippet

Dynamic Text & Flash Player 7?
So I've been using this code for a while to load an external text file into flash with the subsequent text file having myVar= whatever... at the top. It works great, but only in Flash Player 6. Due to another animation in my movie, I need to publish this in Flash Player 7. What am I missing?
Thanks,
East High


ActionScript Code:
path ="dealers/";ca_mc.onRelease = function() {        loadText = new LoadVars();    loadText.load(path+"CA.txt");    LoadText.onLoad = function(success) {        if (success) {            textfield.html = true;            textfield.htmltext = this.myVar;        }    };};


PS- Anyone else notice that Flash Player 8 beta doesn't support things that 7 did? Kinda sucks....

Dynamic Text In Flash 7 Player
Hi
My dynamically loaded text works fine if I publish to flash 6. When I publish to Flash 7 it won't show! I did find another thread on this and their problem ended up being syntax. I've checked over and over and can't find a problem. Could someone have a look and let me know if they see anything that might be causing the grief? Here's the code:
Code:
stop();
booksLoadVars = new LoadVars();
booksLoadVars.load("bookTitle.txt");

function showMission(){
_root.attachMovie("mission","mission_mc",this.getNextHighestDepth(),{_x:375, _y:299});
_root.createTextField("mission_txt",101,220,40,330,500);
mission_txt.html=true;
mission_txt.multiline=true;
mission_txt.wordWrap=true;
mission_txt.embedFonts=false;
mission_txt.variable="missionContent";
mission_txt.htmlText=booksLoadVars.missionContent;

myTextFormat = new TextFormat();
myTextFormat.font = "Arial";
myTextFormat.size = 11;
myTextFormat.color=0x000000;
mission_txt.setTextFormat(myTextFormat);
}

mission_btn.onRelease=function(){
showMission()
}
PS. When I set embedFonts to true it won't work in either flash 6 or 7.

Thanks for having a look!

Flash Dynamic Video Player
I made a flash player that players FLV videos dynamicly. The only problem is when I try to make the controls they don't work. Can someone please help me? Here is the actionscript....

// initialize net connection and stream
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream(netConn);
myVideo.attachVideo(netStream);
netStream.play(url);
//
//
//hide the standard menu-items for right click menu
my_cm = new ContextMenu();
//hide the standard menu-items for that object
my_cm.hideBuiltInItems();
my_cm.customItems.push(menuItem_cmi);
function onPause(obj, menuItem) {
trace("You choose: "+menuItem.caption);
}
_root.menu = my_cm;

myVideo.playButton= play_btn;
myVideo.pauseButton= pause_btn;
myVideo.backButton= rewind_btn;

Dynamic Loading MP3 In Flash Player
I am working on a website that has a large number of sound files. They are available through category pages and search results. While the pages are html based, I would like to embed a flash mp3 player on each page and be able to have the mp3 play in the embedded player.

So far all of the tutorials I have seen are for playing mp3 files that are listed in an xml document. Is anyone aware of a tutorial or information that might be helpful in my current project?

Please see the attached screen shot of what I have built so far. I would like to click on the "play" beside each title and have that play in the flash mp3 player at the top.

thanks advance for any suggestions.

Forrest

How To Give Flash Player Dynamic Url Of Xml File..?
Hi,

I have a player in flash it papulate from xml file which i write from php, that player has static path of that 1 xml file.

Ok, now situation is that I have songs list in php when i click on a song it write the xml file of that song which contains information of that song so that plash player can run it. I am giving name to this xml a song title, Now I want whenever i click on a song and when it create a xml file a parameter should sent to flash player containing name of that created xml file and player papulate with that spesific xml file which is created. similarly when i click on another song this time again another xml file will create now again a parameter should sent to flash player with name of current file and it papulate itself with new file and so on.

How I i do i send that dynamic xml file name to flash...?

thanks,

Bye

Creating A Dynamic Flash Movie Player
Hey, I am looking to create a flash movie player kinda like the one YouTube uses. However, I am not sure how YouTube index their movie files.

For example, I have only seen flash movie players that use static XML files to index the movies. When someone uploads a movie to YouTube, does it update an XML file somewhere or something?

When the movies page is loaded, is a var sent to the movie player to tell it which movie to play and if it is, how is this done?

Thanks in advance people,
Dan

Flash Video Player - Dynamic Menu List
All,

I'm a beginner to ActionScript, but know most of the other ins and outs of Flash Video. I'm trying to create a Dynamic FLV player similiar to the look and feel of the one below. Althought this one uses Flash and Microsoft's Media Player. I've seen the examples on Adobe.com of the playlist driven. http://www.adobe.com/devnet/flash/articles/prog_download.html I don't want
a scrolling combobox. I want to populate video thumbnails and text just like they do in this example below.

http://www.foodnetwork.com/food/video_guide/

QUESTIONS:
1) What do you do in ActionScript to get a video to play when you click on a thmubnail?
2) Does the thumbnail and the FLV player all have to be in the same SWF file?
3) Does anyone know of any pre-built package that looks a lot like the above food network video player?

I searched the net and Adobe and haven't found as a slick a player yet.

Thanks

Dan

Create Dynamic Bar Chart (visualisation) For Flash Mp3 Player
Is possible to create dynamic bar chart for flash mp3 player?
I mean the similar effect like in Winamp or others music players (WMP) to display bar chart depending on the sound intensity.

Thanks

Externally Loaded Dynamic Text And The Difference Between Flash Player 6 And 7
Ok I was making a site in flash mx and decided to switch over to 2004 to get the new features, including flash player 7's ability to load images into text files. When I try and export it in flash player 7 the text boxes will not load. To load them I use the script:

loadhtmlText = new LoadVars();
//loading text field in
loadhtmlText.load("content.txt");
loadhtmlText.onLoad = function(success) {
if (success) {
myTextArea.wordWrap = true;
myTextArea.htmltext = this.fileText;
} else {
myTextArea.htmltext = "Failed to load Text file, please make sure file is present and try again...";
}
}

and at to top of my text files I put "fileText=". Why wont it load now in 7 but it will in 6, and how can I fix this?? Thanks alot,

-Dave

Flash Player 5 Discrepency With Instance Names In Mc's & Dynamic Text?
ok, i have a movieClip with the instance name "content" within it I have a dynamic text field with the instance of news_txt which calls for an outside .txt document for its content, but when I try to publish the swf it gives me an error saying:

WARNING: This movie uses features that are not supported in the Flash 5 player
Symbol=content, layer=content, frame=1:Flash MX Text Field Instance Name

wtf? this is my script within the mc,


ActionScript Code:
var externalData:LoadVars = newLoadVars();externalData.onLoad = function(){    news_txt.text = externalData.newsContent;}externalData.load("news_Content.txt");


so what am I doing wrong? thanks.

Flash Player 5 Discrepency With Instance Names In Mc's & Dynamic Text?
ok, i have a movieClip with the instance name "content" within it I have a dynamic text field with the instance of news_txt which calls for an outside .txt document for its content, but when I try to publish the swf it gives me an error saying:

WARNING: This movie uses features that are not supported in the Flash 5 player
Symbol=content, layer=content, frame=1:Flash MX Text Field Instance Name

wtf? this is my script within the mc,


ActionScript Code:
var externalData:LoadVars = newLoadVars();externalData.onLoad = function(){    news_txt.text = externalData.newsContent;}externalData.load("news_Content.txt");


so what am I doing wrong? thanks.

Help Achieving This Effect For Flash 6 Player (dynamic Image Load/mask)
I found this code snippet on the Flash Developer's Network, and it works great, however, it doesn't work on older versions of flash. The client is very adament that it needs to.

Here's the working code from Flash 8.


Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
target_mc._visible = false;
// Center the image on the Stage.
target_mc._x = (Stage.width - target_mc._width) / 2;
target_mc._y = (Stage.height - target_mc._height) / 2;
var maskClip:MovieClip = target_mc.createEmptyMovieClip("mask_mc", 20);
with (maskClip) {
// Draw a mask that is the same size as the loaded image.
beginFill(0xFF00FF, 100);
moveTo(0, 0);
lineTo(target_mc._width, 0);
lineTo(target_mc._width, target_mc._height);
lineTo(0, target_mc._height);
lineTo(0, 0);
endFill();
}
target_mc.setMask(maskClip);
target_mc._visible = true;
var mask_tween:Object = new Tween(maskClip, "_yscale", Strong.easeOut, 0, 100, 2, true);
};
this.createEmptyMovieClip("img_mc", 10);
var img_mcl:MovieClipLoader = new MovieClipLoader();
img_mcl.addListener(mclListener);
myRandomNumber = String(Math.floor(Math.random() * 5))
img_mcl.loadClip("image"+myRandomNumber+".jpg", img_mc);
Basically, what I'm trying to accomplish is a random image loaded to the stage and and an animated mask bringing it into view.

Can anyone help me accomplish this for older flash players?

Thanks!

Creating A Video Player With Dynamic Draggable Playlist. Is It Doable In Flash? Help Please
Hello Everyone,

I am scripting a video player and one of its functionalities is to be able to have a playlist that can be arranged by the user in any order user like. For Example, if there are lets say 5 videos within the playlist:

SONG 1
SONG 2
SONG 3
SONG 4
SONG 5

User can then change the order of the videos by clicking on any video and dragging it up or down just like windows mediaplayer and the player should play the videos in such order.

So far, I have been able to use the list component but am not sure if it will allow the dragging.

I would highly appreciate it if you guys can suggest what should I do to handle this functionality.

Thanks.

Flash Player Installed, But Every Site Flash Player Required For Asks To Install Not Working At All
Hi all, wondering if someone would be kind enough to help me, PLEASE lol
Flash player asks to be installed everytime I go onto any site that requires it, I have installed it, it advises it has been sucessfully installed but when I go back to the page it asks again! Have had this problem for ages and have tried eveything I can think of! at witts end and customer service wont help as its a free product.
Any help would be greatfully appreciated.
Sarah ;-)

Flash Player 6 Code Doesn't Work In Flash Player 7 Or Grater
Hi flashers,

I think some of you know this page http://www.levitated.net
There you can download open source scripts that are quite cool. When I publish on of those codes with the flash player 7 or grater, they doesn't work anymore. Does anyone know why?

thanks
-Tukinu

Flash Player 10, Record Dynamic Sound As A New Sound
I am trying to play some notes and and record them in Flash Player 10 as a new sound. Does anyone know if that is possible in the new player?

Firefox Recognizes Quicktime As Flash Player Instead Of Flash As Flash Player
I don't know why when I go to websites and all those old Flash sites don't work anymore, but I get the "Quicktime Question Mark" logo. I've tried reinstalling Flash Player so many times but the quicktime logo keeps coming up. I've tried this both with Firefox and Safari and it just doesn't work.

If A Movie Is Made For Flash Player 6, Will It Work On Flash Player 5?
I doubt this, but I made an web application using MX features and some of my users use solaris/linux/other strange OS and there is no Flash Player 6 for it. Do I have no choice but to stop using Flash MX features?

Old Version Of Flash Player And Location Of Flash Player In The Computer?
Hello forum!

I want to test the update process of my site but already have the latest version of flash player. So I have two problems:

-the first one is that I can't find older versions (fp6 or fp7) on the internet

-the other one is that (don't smile) I can't manage to uninstall the latest version of flash player from my computer! I unistalled all flash player programs in the control panel of windows XP, I don't find flash player in the "program files" folder, however flash player is always working!!

Code Works For Flash Player 6 Settings But Not For Flash Player 8...
Hi,

I'm pretty new to Action script and I have a problem here that I can't seem to figure out.

I have this Action Script Code which is attached to a simple movieclip, and it all works IF the general settings are set for Flash Player 6.

It does not work for Flash Player 7 or above, which is probably because this is Actions Script 1 Code...

I attached the .fla file and also here's the code:


Code:
onClipEvent (load) {
accel =0;
rate = 0.05;
trace(_y)
_root.ykoord=0;
}

onClipEvent(enterFrame) {
y=y*accel+(_root.ykoord-_y) * rate;
_y+=y;
if(Math.abs(_root.ykoord-_y)<1) { _y=_root.ykoord; }

}
Do I need to change the code ?

I wanna publish in Action Script 2 for either Flash player 8 or 9.

Thanx for your help in advance !!!

Mike

Tsunami Works Fine With Flash 5 Player But Not With Flash 6 Player
I downloaded this tsunami from a user on this forum. It works fine when I publish it in Flash 5 player format, but NOT when I publish it in Flash 6 player format.

Can anybody tell me which part of the actionscript needs modified?

Thanks.

Ian

Code Works For Flash Player 6 Settings But Not For Flash Player 8...
Hi,

I'm pretty new to Action script and I have a problem here that I can't seem to figure out.

I have this Action Script Code which is attached to a simple movieclip, and it all works IF the general settings are set for Flash Player 6.

It does not work for Flash Player 7 or above, which is probably because this is Actions Script 1 Code...

I attached the .fla file and also here's the code:


Code:
onClipEvent (load) {
accel =0;
rate = 0.05;
trace(_y)
_root.ykoord=0;
}

onClipEvent(enterFrame) {
y=y*accel+(_root.ykoord-_y) * rate;
_y+=y;
if(Math.abs(_root.ykoord-_y)<1) { _y=_root.ykoord; }

}
Do I need to change the code ?

I wanna publish in Action Script 2 for either Flash player 8 or 9.

Thanx for your help in advance !!!

Mike

Publishing In Flash Player 6 Works. Flash Player 8 Doesn't.
I'm building a small quiz application in Flash 8. I started out targeting Flash Player 6 but have now decided that I need some of the features only available in Flash 8. When I try publishing to Flash 8 I get some weird behavior.

There aren't any AS errors, but where the application worked fine for Flash 6, now it gets stuck in a loop and never actually loads.

I've tried both Actionscript 1.0 and 2.0 as I'm pretty much just working in 1.0 on this project, and neither works in Flash 8.

Are there any known issues between version 6 and 8 that might cause something like this? I read on another forum that not initializing a numeric value that you're incrementing can cause this issue, but I've checked that and all my variables are being initialized to a value first.

[F8] 2 Flash Objects - Audio Player Passes Pause To Video Player
I have 2 flash objects on my html page.

One is a video player and the other is an audio player.

The video player starts playing by default.

I'd like to somehow set this up so that if someone clicks on the audio player, it automatically pauses the video player.

Please note that these are 2 SEPARATE FLASH OBJECTS on my HTML website. I'm not developing an all Flash driven website.

The audio player was added as an afterthought, originally there was only going to be a video player on the page.

How can I send a pause command from the Audio Player to the Video Player?

FOO

How Do I *completely* Uninstall Flash Player And Then Install The *full* Player?
I lost the ability to to hear the audio on YouTube videos and other (e.g., news feed sites) videos served via Flash Player. Several people who encountered this problem claim to have solved it by reinstalling Flash Player. This has not helped me, though the Adobe sites I download from all serve up either the Flash Player *plugin* or the ActiveX player (I prefer Firefox to IE).

The uninstallers I've downloaded from Adobe run in a few seconds, and I suspect are not doing a complete uninstall. If I search my registry for "Flash" or "Macromed" I find many, many entries. Is there a special utility that will do a complete cleanout of Flash registry items and files?

Is there a site where I can download the *full* player, not just the plugin?

One point of information about my problem, however, that makes me think it is not a problem with the Flash Player itself is that I've also lost all Windows sounds (which I find mostly annoying, so I don't mind that), and there's no Windows sound icon in the system tray.

I *am* able to play (and hear) mp3 and wma files played directly off my hard drive. So I think the sound card and audio device drivers (mine is SoundMAX Digital Audio) are fine.

I've gone through the various "solutions" that fixed this for others--codecs replacements, cookie clearing, regisry repair utilities, I even reinstalled the audio driver from the Gateway disk.

I'm stumped and am almost tempted to buy an external (USB) sound card and try directing Flash to it.

But I'm sure there's another solution.

Oh, this is XP SP3 (upgraded to SP3 *after* the problem manifested).

- Willie





























Edited: 08/30/2008 at 11:43:16 AM by WillieGWilliams

Windows Media Player Or Real Player Through Flash
Not sure if this can be answered all that easily, but does anyone know of a way for streaming video to be displayed through a flash movie. My guess is that it has something to do with java script and Active X. If anyone know any possible directions I can go with this, it would be greatly appreciated. Thanks - J

Kallok Music Player V.1.0 (stand Alone Flash Mp3 Player)
Hello! Ive been working on a flash music player that will be able to play music on a website or you can use it as a stand alone player.It is expected to come out late July.It will be a free player,possibly a ultra version for about 5.00 sometime after v.1 comes out.Hopefully people will like this I already got a lot of work into it. If you wanna see a preview of what it loks like (non working) go to http://www.k-player.cjb.net .If anyone is interested in adding or helping out email me at webmaster@sei-inc.com !My webdesign site is being rebuilt but it will be kallok.com.More info about that some other time.

FLash Cd Player .cda Files Launching Media Player?
So I need a solution to this problem. I dont know if it can be solved in flash but any help would be great. I'm making an Enhanced cd. If you pop it in you cd rom it autolaunches a flash movie. There are two options one to goto the website contained on the cd the second to listen to the audio files. Is there a way to launch a media player or open the .cda files with flash so when you click the listen button it starts the cd? help. It needs to play in a cd player otherwise this owuldn't be a problem.

[MX] Closing Flash Player Or Window Projector Player
I know this is pure lazy deal. Is there a script that at the end of the movie clip or slide show it automatic close flash player or close Window Projector?

XSPF PLayer, Webjay.org, Flash Player Woes.... What Do You See?
Hi All,

I'm working on making a jukebox, which, to me works in Firefox on Mac, and IE 6 in Windows.... can you guys check it in your browsers and let me know what you see, and if it works? My client says that it isn't working, but I've tried it in all browsers and to me, it seems to work.

Here's the URLs that have the jukebox code on it:
http://donohoemusic.com/index.php?page=projects

http://donohoemusic.com/index.php?pa...-book-of-songs

I'm not really sure what's going on, whether or not he needs to update his flash player, run another browser or what...
To create the jukebox, I logged into Webjay.org, and made the list, hard coding where each MP3 was on the server, as well as the images. then I outputted the code and pasted it into my cms made simple pages.

Could any of those elements be conflicting? For now, I just want to see if it's working for everyone else.

Thanks for the help!
God Bless!
Josh

PS. I'm using Webjay.org, XSPF player and CMS made simple and I'm on Mac/firefox, win/IE 6

Detect If Browser Has Flash Player And Get Player Version
Hi guys,

  do you have on how to detect if the browser has flash player? and also can detect the flash player version installed on the current browser.

thanks in advance.

Player In Flash - Open URL In Player Player_.swf?mus=http://URL
Good night friends, all right?

I am new in flash and would like a their small help.

I did a player in flash for got her legal. The problem is that the project grew and I now want to open with the database. Tava thinking of something as player_.swf?mus=http://www.link.com/music.mp3

Would anybody know how can do so that my player flash does it open the musics this way?

The project structure is +/- this way:

I have a field input, with the variable "music". Have a button with the name music_btn.

I put the music in this field and pressure the button and the music starts to touch

Action Script:
------------------------------------------------------------------------
This.music_btn.onRelease = function(){
Musica_sound = new Sound(_root);
Musica_sound.loadSound(music,true);
}
------------------------------------------------------------------------

What I wanted to do was to pull for database URL and to put for URL in player. player_.swf?mus=URL

Please, they could help?

Thank you very much at once!

Dynamic Mp3 Player
Hello,

I am having trouble creating a dynamic mp3 player that would basically allow someone to hear interviews in mp3 format from a file list. The files are being added to the server every day and I need something that I can just plug the filename into and have it stream the file.

Anyone who can point me in the right direction has my thanks.

AA

[F8]MP3 Player, Dynamic ID3, PHP Or XML?
I have a MP3 player I built that works fine. But I would like to make it more dynamic for a client. I have it set up now so that Flash reads the XML for the title, url, and artist. I would like to have it so that a client can literally just put new songs into a designated folder, the ID# info will be read and displayed, and the song will play.

I have considered setting up the XML with 10 tags just preset with links to MP3 files names 1-10, and have the client just rename them 1-10 before putting them into the folder. But still I am yet to find a tutorial on how to have the XML actually read the ID3. Everything I have found is for the Flash to read it, or you have to enter it manually into the XML.

I have also found a few examples of using PHP instead of XML, but in these examples still, you have to enter the info manually. Any ideas? Basically i just want a dynamic MP3 player that will update whenever new music is added to the folder, and thats it. No PHP, Flash, or XML updating. Hope someone has some ideas. Thanks alot folks.

[F8] FLV Player With Dynamic PHP URL's
I'm currently working with another website company which designed our website.

What I'm trying to do is have a user upload a video, take that URL from PHP, and play it in an FLV player. Basically, how do I grab the variable from PHP and use that URL string in the content of the FLV Player?

Dynamic Mp3 Player?
What's the best way to pass in a url of a sound file to flash?

I have very simple audio player (play/stop button only) that is dynamically added to the page. There could be dozens on each page, each one plays a different audio file...and the audio is also uploaded dynamically.

the best comparison is YouTube....where the user uploads the file, and it is automatically added to the site so others can view it.

how do I do something like that with audio? What's the best way to get the audio player to know where the file is that it is supposed to play?

Dynamic Flv Player
Hi anyone & all,

Iam using this files for FMS testing.Sample file which iam using now
Everything is working fine, but i need some more features.

(i) when published i need to play the first flv in the list.
(ii) when i click next button it should skip to the next flv.
(iii) How can i change Flvplayback skin.
(iv) I need a fullscreen option button in the control tab.

Please any one help. Thanks in advance.
Jayaraj D
email : jdjayaraj@yahoo.co.in:disgust;:smile;

Dynamic FLV Player
Hi,

I want to create a dynamic FLV player, which is capable to load url value from database. Kindly help me.

Regards

Dynamic .mp3 Player
Hey ive set out on a quest to make a completly dynamic .mp3 player in flash...

i need to ...
1) load in what mp3s to play from a txt file and put it in an array
2) Display the available mp3s in a drop down box *
3) once a music selection is chosen, show a loading bar of untill it is finished**
4) have play pause stop rewind fastforward functionality ***
5) wasent 4 enough??

* or just make it so u can press buttons to loop thru selection next song , previous song and so on. and current song selection is showed in a dynamic text box, and the play button initiates download

** also gonna try to makit it so that the music file starts playing once enough has been loaded, that it will complete loading the sound before it gets to the point at which it is still loading (but that i think i can handle.. having more troubel with the rest)

*** Were rewind and fastforward are unnecessary if its to hard...


any help on this would be greatly appreciated

Thanks

Dynamic Mp3 Player
hi

need help, i need to construct a dynamic mp3 player which has the usual features of a normal one such as song title, duration, volume, forward back etc.

The exception is that i want it to be dynamic and updatable for me so all i will need to do is drop an mp3 into a folder and it will automatically play in the player on the site or save it as an swf file n drop it into a folder, can anyone help me or does anyone have one where i can examine the code.
Would be very grateful as i cant get my head round this.

kashif

Dynamic Txt In MP3 Player...
Hi, If someone could help, I'm having difficulties seeing the Dynamic text which displays the song title ('display_txt') It is in a MC called 'mp3' on the main timeline, before when it wasn't in an MC it was playing all very well.

another thing is 'how can i start the playlist at a certain track and not have it kicking in at random.

yours sincerley
Mat


Code:
stop();
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
if (success) {
_global.songname = [];
_global.songband = [];
_global.songfile = [];
for (var i = 0; i<playlist.firstChild.childNodes.length; i++) {
_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;
_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;
}
}
_root.createEmptyMovieClip("sound_mc", 1);
_root.sound_mc.sound_obj = new Sound();
_global.song_nr = random(songfile.length);
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
MovieClip.prototype.songStarter = function(file, name) {
this.sound_obj.loadSound(file, true);
this.onEnterFrame = function() {
if (this.sound_obj.position>0) {
delete this.onEnterFrame;
this._parent.display_txt.text = name;
} else {
this._parent.display_txt.text = "loading...";
}
};

this.sound_obj.onSoundComplete = function() {
(song_nr == songfiles.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfiles[song_nr], songname[song_nr]);
};
};
volume1.dragger.onPress = function() {
startDrag(this, true, 0, this._y, this._parent.volBG._width, this._y);
this.onEnterFrame = function() {
var p = (this._x/this._parent.volBG._width)*100;
_root.sound_mc.sound_obj.setVolume(p);
};
volume1.dragger.onRelease = function() {
delete this.onEnterFrame;
stopDrag();
};
volume1.dragger.onReleaseOutside = function() {
stopDrag();
};
};
play_but.onRelease = function() {
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
stop_but.onRelease = function() {
_root.sound_mc.sound_obj.stop();
};
fwd_but.onRelease = function() {
(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
back_but.onRelease = function() {
(song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
playlist.load("playlist.xml");

Dynamic .mp3 Player
Hey ive set out on a quest to make a completly dynamic .mp3 player in flash...

i need to ...
1) load in what mp3s to play from a txt file and put it in an array
2) Display the available mp3s in a drop down box *
3) once a music selection is chosen, show a loading bar of untill it is finished**
4) have play pause stop rewind fastforward functionality ***
5) wasent 4 enough??

* or just make it so u can press buttons to loop thru selection next song , previous song and so on. and current song selection is showed in a dynamic text box, and the play button initiates download

** also gonna try to makit it so that the music file starts playing once enough has been loaded, that it will complete loading the sound before it gets to the point at which it is still loading (but that i think i can handle.. having more troubel with the rest)

*** Were rewind and fastforward are unnecessary if its to hard...


any help on this would be greatly appreciated

Thanks

Dynamic MP3 Player Help Please
I've got a movie which will be completely dynamic. If you look here, it will help you understand what I'm trying to do:
http://www.kenbarken.com/musiclibrary/index.html (select Music Library on the right side).

Click on the top row of CDs, then select the "FOURHUNDRED" CD. What you will see is what I'm trying to duplicate. Right now, each of those CDs is a diff scene in this one large movie. Each time we add a CD, we inrcrease the size of the SWF file. In defence...this SWF is a few years old. Anyway, what I'm trying to do now is to convert it to pull information from a database. Instead of jumping to a certain portion of code specfically made for a CD, I'll indicate which CD I want to display by setting a variable when the user selects a CD.

Now, once I get to the CD display page, I will list out each of the song titles on the CD itself. Now, here's the catch. I'm going to be using an MP3 player which needs to load an MP3 based on which song title the user clicks. When the file loads, the MP3 player will load the first song on the CD, in this case the track "We Are Invisible". The first MP3 works just fine, loads and plays correctly. If I decide to change to another track before playing the MP3 it works correctly as well. The problem occurs when I've already played one MP3, then try to load another one...I get nothing but silent speakers. I can't even go back and play the original MP3.

So it seems to me that I am not successfully setting the src file for the new MP3. Once a file is played it's either that file or nothing. I can post the FLA if necessary but lets start off with the code:

First frame where player shows up:

PHP Code:

if (firstPass==undefined){
    firstPass=false
    src = _root.mp3_01;    
}

stTime = "";
startOffX = 0;
isOn._visible = 1;
isStop._visible = 1;
isOn._alpha = 40;
isStop._alpha = 100;

shizcnt = 0;
srcs = src.split("/");
title = srcs[srcs.length-1];
stTime = getTimer();
s = new Sound(this);

if (src eq ""){
    src = "No file found";
}


This is the very next frame

PHP Code:

/////
trace(src);
if (autoStart ne ""){
isOn._visible = 1;
isStop._visible = 0;
if (loadNot eq ""){
s.loadSound(src,true);
loadNot = "y";
}
s.start(startOffX,1);
gotoAndPlay("Playing");
autoStart = "";
}else{
    stop();
}
s.onSoundComplete = function (){ delete this; }
/////////


Here's what my button looks like:

PHP Code:

songtitle_01_mc.onPress = function() {
    _root.songtitle.text = _root.songtitle_01; this line sets the song title
    _root.credits.text = _root.credits_01; this line sets the credits
    gotoAndPlay("settrack"); /*this line jumps to the first frame where the
                            MP3 player shows up*/
    s.load ("amber.mp3"); /*this line is supposed to set the track. Right now
                            it's hard coded the final version will display the MP3 file
                            associated with this song title in the database*/
};


Can anyone tell me what's going wrong?


Thanks GREATLY in advance.

Copyright © 2005-08 www.BigResource.com, All rights reserved