Forum Moderators: open
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(){
music_sound = new Sound(_root);
music_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!
1. do you want to be able to open a .swf that plays Mp3's by supplying the mp3 path in the Querystring? This CAN be done. You have to look at flashVars. they can parse out querystring values to go into flash. You may want to combine this with a server side element like asp.net or php which can parse the path and filename and easily send the data to flash.
hth,
mcm