//Finally, we have another function called by FlxG.fade(), this time //in relation to the callback above. It stops the replay, and resets the game //once the gameplay demo has faded out. protected void onDemoFaded() { //FlxG.stopReplay(); FlxG.resetGame(); }