1//Non gamecenter/steam platform specific specific code belongs here 2package { 3 //import com.sticksports.nativeExtensions.SilentSwitch; 4 import flash.events.*; 5 import flash.media.SoundMixer; 6 import flash.media.AudioPlaybackMode; 7 8 public class platformclass { 9 public function init():void { 10 //SilentSwitch.apply(); 11 SoundMixer.audioPlaybackMode = AudioPlaybackMode.AMBIENT; 12 } 13 14 public function callonwake():void { 15 //SilentSwitch.apply(); 16 wakeupcall = 1; 17 } 18 19 public function callonsleep():void { 20 21 } 22 23 public var wakeupcall:int; 24 } 25}