Really I don't get your code (that's why it's not working)
You are checking for the reaction force limit on every contact 😮 😕
Really, (on each frame) you must go through all joints and check their reaction force... ➡️ 😐
var jj:b2JointDef ---> very funny 😀
var jj:b2Joint
= joint.m_jointList... once again I don't get it!
for (var jj:b2Joint = m_World.GetJointList(); jj; jj = jj.next)
So
for (var bb:b2Body = m_world.m_bodyList; bb; bb = bb.m_next) {
this goes through all the bodies in the world.
for (var dd:b2ContactEdge = bb.m_contactList; dd; dd = dd.next) {
This thing(as far as I can see, never used it) handles every contact(collision) for each body.
and
for (var jj:b2Joint = m_world.GetJointList(); jj; jj = jj.next) {
this thing goes through all the joints in the world, like a first loop, but with joints.
At the moment you are trying to check all joints everytime you check a body, and every time if the body have a collision. That's not right!
Place your joint loop after your handle-all-bodies loop.
I'm not that good in explaining, especially in English.
I get this error once I put it out of the body loop.
1119: Access of possibly undefined property next through a reference with static type Box2D.Dynamics.Joints:b2Joint.
Use GetNext(), not next. Next time it tells you something is undefined, you should look up what it should be rather than giving up.