security/load error
I get the following error:
soundManager: Firing 1 onready() item
soundManager.initComplete(): calling soundManager.onerror()
-- SoundManager 2 failed to load (security/load error) --
soundManager.disable(): Shutting down
soundManager: Failed to initialise.
soundManager: No Flash response within reasonable time after document load. Possible causes: Loading soundmanager2.swf failed, Flash version under 8, no support, flash blocked or JS-Flash security error.
soundManager: Getting impatient, still waiting for Flash.. ;)
soundManager.beginDelayedInit()
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.95a.20090717 (AS2/Flash 8), normal polling mode --
soundManager: Firing 1 onready() item
soundManager.initComplete(): calling soundManager.onerror()
-- SoundManager 2 failed to load (security/load error) --
soundManager.disable(): Shutting down
soundManager: Failed to initialise.
soundManager: No Flash response within reasonable time after document load. Possible causes: Loading soundmanager2.swf failed, Flash version under 8, no support, flash blocked or JS-Flash security error.
soundManager: Getting impatient, still waiting for Flash.. ;)
soundManager.beginDelayedInit()
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.95a.20090717 (AS2/Flash 8), normal polling mode --
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.
The company marked this question as answered.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?My expectation is that this is probably because you are trying to direct to an unavailable location. First, make sure that the location is available from a browser.
Say you're doing this locally, and you are at :
http://localhost/
then you are trying to access :
../../swf/soundmanager2.swf (or "../../swf/" when applying to SM)
then browsers will resolve to :
http://localhost/../../swf/soundmanag...
Which doesn't exist.
Try putting it in a sub folder or in the same folder and see if that helps.
Alternatively if it is in a subfolder the root of the domain, you can replace "../../" with "/". So you would have
/swf/soundmanager2.swf (or "/swf/" when applying to SM)
which will always resolve to the root domain, and you would end up with
http://localhost/swf/soundmanager2.swf
from whatever page/folder you're currently at instead.
Otherwise I expect that more details are needed (like a testcase).
1 person says
this answers the question
-
Inappropriate?I think bum51 has good points.
If you're viewing the SM2 download/demos offline eg. from c:/ or file:// and you're getting this error, Flash security may be stopping JS + Flash from talking. I recommend looking at the troubleshooting tool which comes with the SM2 page.
If you downloaded SM2 to your desktop, it will warn you about this error if security is causing the problem. You'll have to go into Flash's security panel and whitelist the location you're trying to use, eg. c:/documents and settings/user/desktop/soundmanager or what have you. This is because Flash by default doesn't let JS + Flash talk when viewing "offline" on the desktop.
The troubleshooting tool will point you here:
http://www.macromedia.com/support/doc...
You need to add a location, eg. the folder containing SM2 on your desktop, and then things should work offline.
When served over HTTP, this is not an issue.
The company says
this answers the question
-
Inappropriate?soundManager.initComplete(): calling soundManager.onerror()
-- SoundManager 2 failed to load (security/load error) --
soundManager.disable(): Shutting down
soundManager: Failed to initialise.
soundManager: No Flash response within reasonable time after document load. Possible causes: Loading soundmanager2.swf failed, Flash version under 8, no support, flash blocked or JS-Flash security error.
soundManager: Getting impatient, still waiting for Flash.. ;)
soundManager.beginDelayedInit()
soundManager._initMovie(): Waiting for ExternalInterface call from Flash..
soundManager._initMovie(): Got EMBED element (created via JS)
soundManager._createMovie(): Trying to load ./soundmanager2.swf
-- SoundManager 2 V2.95a.20090717 (AS2/Flash 8), normal polling mode --
i too get this error. I run the file from desktop or say c:/ drive. I even tried whitelisting the whole folder in http://www.macromedia.com/support/doc...
Nothing worked!
i need help!
my script is this way
soundManager.URL = '/swf/';
soundManager.onload = function() {
soundManager.createSound('test','audio.mp3');
soundManager.play('test');
};
audio.mp3 is in the parent directory itself.
I’m reallly frustrated trying all the ways.
-
Inappropriate?Check your path, since you're loading /swf/ it will probably be c:/swf/ that SM2 tries loading from - which will not work. Rather, you should use a relative path. Check that the path SM2 ends up using is correct. Chances are your security stuff is OK, and now it's just that the .SWF file can't be found.
The troubleshooting tool may also help with this, though you'd need to copy it into your app for checking the problem.
http://www.schillmania.com/projects/s...
Loading Profile...




EMPLOYEE