Pause in openfl

How can I do to pause in haxe?

I’m afraid your question is a bit too vague @nycolexavier. What exactly do you want to pause?

You can use ENTER_FRAME event handler. And whenever you want to pause you can ignore the executing block using some condition inside it.

stage.addEventListener(Event.ENTER_FRAME, ef);

function ef(e:Event):Void 
{
if( pause_bool )
{
  //code to be resumed or paused 
 }
}