public var baseJSController: String = "soundManager";
public var baseJSObject: String = baseJSController + ".sounds";
public var soundChannel: SoundChannel = new SoundChannel();
public var urlRequest: URLRequest;
public var soundLoaderContext: SoundLoaderContext;
public var waveformData: ByteArray = new ByteArray();
public var waveformDataArray: Array = [];
public var eqData: ByteArray = new ByteArray();
public var eqDataArray: Array = [];
public var usePeakData: Boolean = false;
public var useWaveformData: Boolean = false;
public var useEQData: Boolean = false;
public var sID: String;
public var sURL: String;
public var didFinish: Boolean;
public var loaded: Boolean;
public var connected: Boolean;
public var failed: Boolean;
public var paused: Boolean;
public var finished: Boolean;
public var duration: Number;
public var handledDataError: Boolean = false;
public var ignoreDataError: Boolean = false;
public var autoPlay: Boolean = false;
public var autoLoad: Boolean = false;
public var pauseOnBufferFull: Boolean = false;
public var loops: Number = 1;
public var lastValues: Object = {
bytes: 0,
position: 0,
duration: 0,
volume: 100,
pan: 0,
loops: 1,
leftPeak: 0,
rightPeak: 0,
waveformDataArray: null,
eqDataArray: null,
isBuffering: null,
bufferLength: 0
};
public var didLoad: Boolean = false;
public var useEvents: Boolean = false;
public var sound: Sound = new Sound();
public var cc: Object;
public var nc: NetConnection;
public var ns: NetStream = null;
public var st: SoundTransform;
public var useNetstream: Boolean;
public var bufferTime: Number = 3;
public var lastNetStatus: String = null;
public var serverUrl: String = null;
public var checkPolicyFile:Boolean = false;
public function SoundManager2_SMSound_AS3(oSoundManager: SoundManager2_AS3, sIDArg: String = null, sURLArg: String = null, usePeakData: Boolean = false, useWaveformData: Boolean = false, useEQData: Boolean = false, useNetstreamArg: Boolean = false, netStreamBufferTime: Number = 1, serverUrl: String = null, duration: Number = 0, autoPlay: Boolean = false, useEvents: Boolean = false, autoLoad: Boolean = false, checkPolicyFile: Boolean = false) {
this.sm = oSoundManager;
this.sID = sIDArg;
this.sURL = sURLArg;
this.usePeakData = usePeakData;
this.useWaveformData = useWaveformData;
this.useEQData = useEQData;
this.urlRequest = new URLRequest(sURLArg);
this.didFinish = false;
this.loaded = false;
this.connected = false;
this.failed = false;
this.finished = false;
this.soundChannel = null;
this.lastNetStatus = null;
this.useNetstream = useNetstreamArg;
this.serverUrl = serverUrl;
this.duration = duration;
this.useEvents = useEvents;
this.autoLoad = autoLoad;
if (netStreamBufferTime) {
this.bufferTime = netStreamBufferTime;
}
this.checkPolicyFile = checkPolicyFile;
writeDebug('SoundManager2_SMSound_AS3: Got duration: '+duration+', autoPlay: '+autoPlay);
if (this.useNetstream) {