/**
* SoundManager 2: Javascript Sound for the Web
* ----------------------------------------------
* http://schillmania.com/projects/soundmanager2/
*
* Copyright (c) 2007, Scott Schiller. All rights reserved.
* Code licensed under the BSD License:
* http://www.schillmania.com/projects/soundmanager2/license.txt
*
* Flash 8 / ActionScript 2 version
*
* Compiling AS to Flash 8 SWF using MTASC (free compiler - http://www.mtasc.org/):
* mtasc -swf soundmanager2.swf -main -header 16:16:30 SoundManager2.as -version 8
*
* ActionScript Sound class reference (Macromedia), documentation download:
* http://livedocs.macromedia.com/flash/8/
* Previously-live URL:
* http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002668.html
*
* *** NOTE ON LOCAL FILE SYSTEM ACCESS ***
*
* Flash security allows local OR network access, but not both
* unless explicitly whitelisted/allowed by the flash player's
* security settings.
*
* To enable in-flash messaging for troubleshooting, pass debug=1 in FlashVars (within object/embed code)
* SM2 will do this by default when soundManager.debugFlash = true.
*
*/
import flash.external.ExternalInterface; // woo
class SoundManager2 {
static var app: SoundManager2;
function SoundManager2() {
var version = "V2.97a.20150601";
var version_as = "(AS2/Flash 8)";
/**
* Cross-domain security options
* HTML on foo.com loading .swf hosted on bar.com? Define your "HTML domain" here to allow JS+Flash communication to work.
* // allow_xdomain_scripting = true;
* // xdomain = "foo.com";
* For all domains (possible security risk?), use xdomain = "*"; which ends up as System.security.allowDomain("*");
* When loading from HTTPS, use System.security.allowInsecureDomain();
* See "allowDomain (security.allowDomain method)" in Flash 8/AS2 liveDocs documentation (AS2 reference -> classes -> security)
* download from http://livedocs.macromedia.com/flash/8/
* Related AS3 documentation: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/Security.html#allowDomain%28%29
*/
var allow_xdomain_scripting = false;
var xdomain = "*";
if (allow_xdomain_scripting && xdomain) {
System.security.allowDomain(xdomain);
version_as += ' - cross-domain enabled';
}