trying to learn, completely at a loss; revolute joints?

I've just started learning AS3 and box2D along with it. I can get static and dynamic boxes to appear, but thats about it. The rest of the code/tutorials are over my head. Right now, I want to make a revolute joint, which should be simple enough. I have a static groundBody which sits at the bottom and a dynamic box0 with friction=1 and density=1. If I don't create a revolute joint, it falls to the ground neatly. Here is my code for the revolute joint:
Code:
private function makeRevoluteJoint(bA:b2Body, bB:b2Body, maxMotorTorque:Number, enableMotor:Boolean):b2RevoluteJointDef
     var rJointDef:b2RevoluteJointDef = new b2RevoluteJointDef();

     rJointDef.Initialize(bA, bB, bA.GetWorldCenter());
     rJointDef.maxMotorTorque = maxMotorTorque;
     rJointDef.enableMotor = enableMotor;

     return rJointDef;
}


and in the main body (having already made groundBody and box0
Code:
world.CreateJoint(makeRevoluteJoint(box0, groundBody, 1.0, true);


I have also tried switching box0 and groundBody. With the first configuration above, box0 stays anchored in the air not moving. In the second configuration, it sort of swings around and under groundBody and disappears. I really want to learn this library but the code is confusing (to me) and worse yet, since I don't really know what the mechanics are supposed to look like, I don't know how to troubleshoot. Hope you can help. Thanks!

Original thread: https://box2d.org/forum/viewtopic.php?t=6786