making an external JS-based SWF player work

I found a great open source mp3 and flv player - the JW Player at http://www.longtailvideo.com/. I've been able to create a simple HTML file (outside of Lectora), and it worked beautifully, pointing to an mp3 file on a file server. Very simple, too - just a player swf with no changes needed (player.swf), a javascript file (swfobject.js), and my html file with a small script. However, in Lectora, when I create an external HTML object with the code, it simply doesn't work. I'm not sure what's preventing this from working, but maybe can I assume there's a conflict with one of Lectora .JS files and the swfobject.js file.? The player itself displays, but the mp3 doesn't play (unlike the test outside of Lectora). The script I paste into the external html object is below. Please note, there's no header script, just what you see below in the body.



[script type='text/javascript' src='swfobject.js'][/script]


 


[div id='mediaspace']This text will be replaced[/div]


 


[script type='text/javascript']


var so = new SWFObject('player.swf','mp1','328','25','9');


so.addParam('allowfullscreen','false');


so.addParam('allowscriptaccess','always');


so.addParam('wmode','opaque');


so.addVariable('file','file:///G:/WIN/PALAPPS/Lectora/audioplayertestg/audio/B01.mp3');


so.addVariable('autostart','true');


so.write('mediaspace');


[/script]



Could anyone please help me get this to work when publishing from Lectora? Thanks, EB

Discussions have been disabled for this post