Recent activity
Subscribe to this feed
Kourtesy replied on November 03, 2009 02:47 to the question "why can't sm2 find the path to the flash movie." in Schillmania!:
Kourtesy asked a question in Schillmania! on November 01, 2009 02:47:
why can't sm2 find the path to the flash movie.I'm trying to use sm2 in one of my scripts. I set it up the paths exactly like I did for the demo that I got working; however, it is working for the script that I wrote. I get the following error message.
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._initMovie(): Waiting for ExternalInterface call from Flash..
soundManager._initMovie(): Got OBJECT element (created via JS)
soundManager._createMovie(): Trying to load ./soundmanager2.swf
-- SoundManager 2 V2.95a.20090717 (AS2/Flash 8), normal polling mode --
I don't know why it would say trying to load ./soundmanager2.swf; I haven't included that path anywhere. I set the soundManager.url equal to '../swf/'.
In the demo that is working these are the first two lines in the debugger div. soundManager._createMovie(): Trying to load ../swf/soundmanager2_flash9.swf
-- SoundManager 2 V2.95a.20090717 (AS3/Flash 9), high performance mode, fast polling mode, wmode: transparent --
I don't know why it doesn't pick the flash version 9 in every script.
Please Help?
Thank you,
Kourtesy
Kourtesy marked one of Scott's replies in Schillmania! as useful. Scott replied to the question "how to change directories of files and still have SM2 work?".
Kourtesy replied on October 28, 2009 17:03 to the question "how to change directories of files and still have SM2 work?" in Schillmania!:
Kourtesy replied on October 28, 2009 14:20 to the question "how to change directories of files and still have SM2 work?" in Schillmania!:
Thank you for the reply. I was able to move everything one directory up and still have things work. There are a couple of things that don't make sense to me though. Fisrt, there is a line in the mpc.js file that says:
soundManager.url = '../swf/';
I don't understand why this would be the path to get to flash movie. Unless, is the path from the point of view of the soundmanager2.js file? Second, is really quite the same as the first source of confusion. The line in the mpc.js that says:
soundManager.loadFromXML('acoustic-drumkit.xml');
With respect to the mpc.js file, the path to the xml file would be ../acoustic-drumkit.xml. Why, then, is the ../ not needed? Is this being referenced with respect to the location of the soundmanager2.js file? If you could help me out, it would really help when I go to write my own script. Thank you.
Kurtis asked a question in Schillmania! on October 28, 2009 02:31:
how to change directories of files and still have SM2 work?I uploaded the contents of the swf, src, and script directories to my server. Then, in the same directory I created a demo directory. Then, I created I uploaded the mpc directory inside of that. Everything worked. However, I didn't want all of these extra directories. To keep it simple, I tried just moving all of the contents of the mpc directory into the demo directory to see if I could get the mpc application working in there. I thought that changing the path to the soundmanager2.js file in index.html would make everything work; this didn't seem to work. Can you help me solve this? In which files would I need to change paths in if I wanted to move this index.html file to a different directory?
Loading Profile...
