var ply = new jeroenwijering.player(cnt, src, cfg);
alert(‘the file is: ’ +ply.getConfig().file);
ply.sendEvent(’Play’);
Ply.sendEvent(‘VOLUME’,50);
ply.sendEvent(‘LOAD’,‘newvideo.wmv’);
ply.addListener(‘volume’alert);
function myFunc(old,new) {
alert(‘the state went from ’ +old+ ’ to’ +new);
};
ply.addListener(STATE’,myFunc);