Haxe port of FlxDigger classes from http://forums.flixel.org/index.php/topic,6831.msg39380.html