Switch problem?

Example (doesnt work):
problem = _root.World.DirectionDude.hitTest(_root.Unit)
switch(problem){
case “DirectionDude” :
trace(“hello”)
break;
case “AttackingDude” :
trace(“ya”)
break;
defualt :
trace(“nothing”)
}
Okay now say that the object (_root.world.object) for the hit test changes alot how do i get it to just check for the object under the case, instead of having to type the entire _root.wor… for each one.