I'm making a simple game in Flash CC using Adobe Air and publishing for Android. The movie compiles correctly and the sound plays fine on the desktop, but when publishing to Android nothing plays from my phone. I've tried using a different phone as well, and there's no sound coming out of it. My code is below:
package {
import flash.display.MovieClip;
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.media.Sound;
import flash.net.URLRequest;
public class MainGame extends MovieClip {
public var sndBoop:Boop = new Boop();
public function MainGame() {
gameTimer = new Timer(1500);
gameTimer.addEventListener(TimerEvent.TIMER, createNewCircle);
gameTimer.start();
}
public function createNewCircle(event:TimerEvent):void {
sndBoop.play();
}
}
}
The sound I have is a .wav file that's linked to the Boop class in the library. I've tried using a .mp3 file, adding in the sound file during the packaging settings, using the URLRequest method of grabbing an external sound file, or internal sound file. None of these methods work. It's still just playing on the desktop or emulator, but not on my actual phone. I've used three phones so far, and they all aren't playing the sound.
Is there something I've overlooked?