// may be helpful too
//enemy.touching &= ~FlxObject.UP;
var enemyHurt: Bool = enemy.isTouching(FlxObject.UP);
// enemy is hurt, player jumps
// player goes to 'hurt' state
You'd basically want to threat it like a big planet, with gravity. Not sure how this would work for other styles, but basically, everything revolves around a central object.
This approach might be a bit killer, but is better than doing screen by screen checks, or teleporting objects. In my honest opinion of course. Haxeflixel supports physics already, you could give it a try and let us know!