Lately I have been using haxe and openfl to (attempt) to make games, I'm coming from previous knowledge with XNA, where, when drawing with a spritebatch, you can specify a depth to draw the image, independent of when you actually call the draw function. starting out with openfl, I noticed that drawing to a bitmapdata as a buffer provided me with a similar way to draw as a spritebatch, but it does not have a depth parameter.
My question is, does anyone know of a good way of handling draw calls to allow for specifying a draw depth?