Take the 2-minute tour ×

i'm assigning new playlist to the SWF object. Then it needs to be reloaded it with new param:


    var current = $(this).val();
    var fextention = ".xml";

    //show the loading bar

    //reloading player with relevant playlist:

    var elem = $("#dewplayerpls")[0]; // - #dewplayerpls - is object id
    window.alert( xmlplaylist.val() ); // value correct. reload doesn't happen


share|improve this question
Does this mean that it's impossible or too hard, please? –  Elen Oct 6 '10 at 8:35

1 Answer 1

Ok, i work it out.... sharing the knowledge.

you need to use swfobject.js plugin (http://jquery.thewikies.com/swfobject/)

then the code is simple:

var xmlplaylist = 'dewplayer-playlist.swf?xml=playlists/'+current+fextention;
swfobject.embedSWF(xmlplaylist, 'player', '240', '200', '5.0.0');

where xmlplaylist - selfexplanatory (basically SWF file, and xml - is the parameter) player - is id to append it to 240 - width 200 - hight 5.0.0 - minimum flash player requirement more options available please read swfobject docs.

share|improve this answer
already forgot my login info while was waiting! –  Elen Oct 8 '10 at 15:20

Your Answer


