Not sure if this still works with recent versions, but I wrote this Java code to do what you're talking about a while ago, and I think it worked then:
Code:
public static Body[] getAllBodiesInCircle(World w, Vec2 center, float rad) {
AABB aabb1 = new AABB(new Vec2(center.x - rad, center.y - rad), new Vec2(center.x + rad, center.y + rad));
int maxCount = w.getBodyCount();
Shape[] shapes1 = w.query(aabb1, maxCount);
if (shapes1 == null || shapes1.length == 0){
return null;
}
CircleDef cd = new CircleDef();
cd.radius = rad;
CircleShape cs = (CircleShape)(Shape.create(cd));
XForm circleXF = new XForm();
circleXF.position.set(center);
HashSet<Body> mySet = new HashSet<Body>();
for (Shape s:shapes1) {
Body b = s.getBody();
//if (s.testPoint(s.getBody().getXForm(), center)) {
float dist = Distance.distance(new Vec2(), new Vec2(),
cs, circleXF, s, b.getXForm());
if (dist <= Settings.EPSILON) {
mySet.add(b);
continue;
}
}
Body[] ret = mySet.toArray(new Body[mySet.size()]);
return ret;
}
This sort of digs into internals to get the job done, so I'm not sure that all these functions are accessible in AS3 or C++, and you'll have to find some AS3 equivalent of a HashSet or rewrite that bit.