You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

onError how to catch the ErrorCode or show an alert!?? Created Sep 19, 2009

This thread is solved

Views: 3234     Replies: 3     Last reply Aug 7, 2011  
You must login first before you can use this feature

quik

Posts: 4

Registered:
Jul 19, 2009

onError how to catch the ErrorCode or show an alert!??

Posted: Sep 19, 2009

Hello there,

I'm trying to catch the errorCode but i dont know how to show in alert() the code, i tried to show a random message such : alert('hello'); and nothing appears! in Firebug logged "Unable to load audio file" i think it is errorCode 200 or 201. but i'm not able to handle this errorCode, kind anoying me...

PS: I did a massive search at the Forum and Google, and i didn't find any clue :-(

Thanks in advance.

Here is the code:

$f("musicplayer", "flowplayer/flowplayer-3.1.1.swf", {

plugins: {
controls: {
fullscreen: false,
height:30
}
},
clip: {
url: v_musica,
autoPlay: true

},
onLoad: function(){
this.unmute();
this.setVolume($("#volume_atual").val());

},
onFinish: function (){
$("#musicplayer").html('');
$("#tocando").val('0');
move();
verifica_playlist(); } ,

onError: function() {
alert("Hello");
}

});

quik

Posts: 4

Registered:
Jul 19, 2009

» onError how to catch the ErrorCode or show an alert!??

Posted: Sep 24, 2009

Reply to: onError how to catch the ErrorCode or show an alert!??, from quik
bump

mul14

Posts: 1

Registered:
Nov 3, 2009

» » onError how to catch the ErrorCode or show an alert!??

Posted: Nov 3, 2009

Reply to: » onError how to catch the ErrorCode or show an alert!??, from quik
Hi, I have same problem. But now have been resolved.

Try this:

$f('element', 'flowplayer.swf', {

  onError : function(err) {
    alert('Error Code: ' + err);
  }

});