Hello,
i bought the "Resizable Mp3 Player 03 AS2" and i want to play my different music tracks in the player.
I have Links like:
HTML Code:
Track1 ...
How can i play the different file in the player with Javascript ? My idea was this
HTML Code:
var flashvars = {};
var params = {};
var attributes = {};
function play_file(new_data)
{
flashvars.song1url = new_data;
flashvars.song1artist = "ADG3";
flashvars.song1songname = "Free Form (Remix) this can be a very long song name and it will slide if it can't fit";
init();
}
function init(){ // SETUP flashvars.autoLoad = "true"; flashvars.autoPlay = "false"; flashvars.repeat = "false"; flashvars.volume = "1"; flashvars.width = "690"; params.play = "true"; params.scale = "noscale"; params.salign = "tl"; params.swliveconnect = "true"; params.allowscriptaccess = "always"; attributes.id = "mp3player"; swfobject.embedSWF("../../scripts/mediaplayer/mp3player.swf", "mp3player-altcontent", flashvars.width, "33", "9.0.0", "js/expressInstall.swf", flashvars, params, attributes); }
...but this is not working.
I asked this question on oxylusflash.com, there are written this player, but they could not javascript
do you have an idea or better a example ?