You mean, like Planetoid Pioneers?
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!