1 decade ago by gxxaxx
I am getting the following error with my current game:
Error: uncaught exception: [Exception... "An attempt was made to use an object that is not, or is no longer, usable" code: "11" nsresult: "0x8053000b (NS_ERROR_DOM_INVALID_STATE_ERR)" location: "http://localhost/mrbkeys/lib/impact/sound.js Line: 188"]
Line 188 is: this.currentTrack.currentTime = 0;
I've tried trapping with tests on:
if (typeof(this.currentTrack) == 'undefined') {
return;
}
if (typeof(this.currentTrack.pause) != 'function') {
return;
}
if (typeof (this.currentTrack.currentTime) != 'number') {
return;
}
Any clue on what is causing this, or.... how to detect when the object is no longer useable?
Thanks,
Claude
Error: uncaught exception: [Exception... "An attempt was made to use an object that is not, or is no longer, usable" code: "11" nsresult: "0x8053000b (NS_ERROR_DOM_INVALID_STATE_ERR)" location: "http://localhost/mrbkeys/lib/impact/sound.js Line: 188"]
Line 188 is: this.currentTrack.currentTime = 0;
I've tried trapping with tests on:
if (typeof(this.currentTrack) == 'undefined') {
return;
}
if (typeof(this.currentTrack.pause) != 'function') {
return;
}
if (typeof (this.currentTrack.currentTime) != 'number') {
return;
}
Any clue on what is causing this, or.... how to detect when the object is no longer useable?
Thanks,
Claude