This is my create() function for my intro state, where I want to play a little ditty:
[Embed(source="../lib/intro.mp3")]
public var musicIntro:Class;
override public function create():void {
//...insert irrelevant stuff here
FlxG.play(musicIntro);
super.create();
}
However, the sound only plays if I unfocus from the game(where the game dims and there's a big play button), then focus again.
Please help.
This is my
create()function for my intro state, where I want to play a little ditty:However, the sound only plays if I unfocus from the game(where the game dims and there's a big play button), then focus again.
Please help.