Hi. I can't get JS version working correctly. Listener onUpdate method is not firing at all.
I have something like this:
<script type="text/javascript">
var myListener = new Object();
myListener.onInit = function () {
this.position = 0;
alert('init');
};
myListener.onUpdate = function () {
alert('update');
};
</script>
<object class="mainplayer" id="mainMDMAplayer" type="application/x-shockwave-flash" data="/System/mp3player/player_mp3_js.swf" width="1" height="1">
<param name="movie" value="/System/mp3player/player_mp3_js.swf" />
<param name="AllowScriptAccess" value="always" />
<param name="FlashVars" value="interval=500&listener=myListener" />
</object>
'init" alert is called, and player works great using SetVariable("method:setUrl", "...."); and SetVariable("method:play", "");
But no 'update' alerts appear and all myListener properties (except position, which stays 0 even though mp3 is playing) are undefined.
What may cause this problem?