Skip to content

Sound only plays after unpausing #172

Closed
@FlixelCommunityBot

Description

@FlixelCommunityBot

Issue by mrnerdman from 2013-07-08T21:39:29Z
Originally opened as AdamAtomic#238


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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions