Detect 2 collisions simultaneously

I need to detect when 2 collisions occurs simultaneously, for exemplo:

hero is colliding with a box and this box is colliding with the floor.


thanks.
I don't know about Flash specifically but the typical approach is to use a contact listener, which gets notifications when fixtures in the world begin to touch each other, and when they stop touching. Try googling about "contact listener".

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