Get instance name of contact object

How can I get instance name of object on contactEvent. Objects are placed on the stage in Flash CS.
I want something like this:
Code:
var object = e.other.name;
but cant get it work. I think because "other" is referring to b2body, not to flash display object.
This made it work:
Code:
var o:BodyShape = e.other.m_userData as BodyShape;
      trace(o.name)
Was hard to find but learned lot while looking for it.
Just use:
Code:
var object = e.relatedObject;

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