Problems IE
I dunno if i'm wrong with my code, but I cannot initialize Soundmanager properly with all browsers. (run smoothly with Opera,Safari,Firefox on mac, but doesn't in Safari, Chrome and IE for pc)
Here's my code:
and later i call soundManager.play('mouse3') throught a mootools event.
Well, with Safari and Chrome for pc it tells me something like that:
in IE instead, doesn't even show up che debug console, it just says that are error on the page (SoundManager undefined) and blocks all my other js!!. The page it's temporally located here: http://www.lepetitatelier.it/jules/ Ty for any eventual help.
Bio.
Here's my code:
soundManager.url = 'swf/';
soundManager.debugMode = true;
soundManager.consoleOnly = false;
soundManager.flashVersion = 8;
soundManager.waitForWindowLoad=true;
soundManager.onload = function() {
soundManager.createSound({
id: 'mouse3',
url: '_mp3/mouseover3.mp3'
});
}
and later i call soundManager.play('mouse3') throught a mootools event.
Well, with Safari and Chrome for pc it tells me something like that:
-- SoundManager 2 failed to load (security/load error) --
soundManager.disable(): Disabling all functions - future calls will
return false.
soundManager: Failed to initialise.
soundManager: No Flash response within reasonable time after document
load. Possible causes: Flash version under 8, no support, or Flash
security denying JS-Flash communication.
soundManager: Getting impatient, still waiting for Flash.. ;)
soundManager.handleFocus()
soundManager.beginDelayedInit(): Document loaded
soundManager._initMovie(): Waiting for ExternalInterface call from Flash..
soundManager._initMovie(): Got EMBED element (created via JS)
soundManager._createMovie(): Trying to load swf/soundmanager2.swf
-- SoundManager 2 V2.93a.20090117 (AS2/Flash 8), high performance mode --
in IE instead, doesn't even show up che debug console, it just says that are error on the page (SoundManager undefined) and blocks all my other js!!. The page it's temporally located here: http://www.lepetitatelier.it/jules/ Ty for any eventual help.
Bio.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Looks like there is a parse error perhaps in your javascript before or after soundmanager2.js, and thus the script is failing to run. I tried loading just soundmanager2.js from your site on an offline HTML page, and it loaded without reporting any JS errors.
I might check your JS to see if you have a trailing comma which may break things in IE. (Fix: Remove the comma.)
eg.
var foo = {
bar: 1,
baz: 2, // comma on the last item = error in IE
};
- S
-
Inappropriate?Oops, I missed your second block of code with the error messaging. If SM2 really is unable to load, try setting soundManager.useHighPerformance = false and see if that affects things. In some cases that can fix load problems. The current version of SM2 (v2.94) has "high performance" mode disabled by default for this reason.
Also make sure you don't call soundManager.play() etc. until after soundManager.onload() has fired. You can check for "is supported" as one way if you don't want to wait for onload() to have fired, eg. from within your MooTools event (however, if it isn't ready, you won't get any sound):
if (soundManager.supported()) {
// SM2 is OK to use
soundManager.play('mouse3');
}
It's possible that if your MooTools code is firing almost right away and resulting in a call to soundManager before it has had time to run, that could also be the cause of the error.
Loading Profile...



EMPLOYEE