How can I do to pause in haxe?
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
}
}