Hello,
I use the latest swfobject and the latest jw player.
$(document).ready(function() {
var flashvars = {
file: "http://localhost:55721/Content/Kalimba.mp3",
backcolor: "111111",
frontcolor: "66cc00",
lightcolor: "66cc00",
playlistsize: "200",
skin: "http://localhost:55721/Content/bluemetal.swf",
playlist: "bottom"
};
var params =
{
'allowfullscreen': 'true',
'allowscriptaccess': 'always',
'bgcolor': '#000000'
};
var attributes = {};
swfobject.embedSWF("http://localhost:55721/Content/player-viral.swf", "player", "470", "470", "9.0.0",
"", flashvars, params, attributes);
});
with the above code the player is loaded and my mp3 can be played. In my html head I have:
<script type="text/javascript">
var player = null;
function playerReady(obj) {
player = document.getElementById(obj.id);
alert('ok');
};
</script>This is never triggered. Why is this? I searched the forum but couldn't find an answer
thanks

There could be a number of reasons for this. Do you have any other javascript on the page?
Try this:
try {
var myReady = playerReady;
} catch (err){
}
playerReady = function(obj) {
player = document.getElementById(obj.id);
alert('ok');
try {
myReady(obj);
} catch (err){
}
}