package Services.Sounds.WeaponSoundObjects { import flash.media.Sound; import Services.Sounds.WeaponSoundObjects.WeaponSound; /** * ... * @author */ public class m3 implements WeaponSound { [Embed(source = "../Weapons/ClipEmpty_Rifle.mp3")] private static const rifleEmpty:Class; private var rifle_Empty : Sound = new rifleEmpty(); //Sound for the M3 Shotgun [Embed(source = "../Weapons/m3-1.mp3")] private static const m3Shot:Class; [Embed(source = "../Weapons/m3_insertshell.mp3")] private static const m3ShellIn:Class; [Embed(source = "../Weapons/m3_pump.mp3")] private static const m3Pump:Class; private var m3_fire : Sound = new m3Shot(); private var m3_reload : Sound = new m3ShellIn(); private var m3_pump : Sound = new m3Pump(); public function m3() { } /* INTERFACE Services.Sounds.WeaponSoundObjects.WeaponSound */ public function playFire():void { m3_fire.play(); } public function getReload():Sound { return m3_reload; } public function getSwitch():Sound { return m3_pump; } public function playEmpty():void { rifle_Empty.play(); } } }