hitTest function problems

Hi folks - have an odd problem that I just can’t get to the bottom of.

I’ve an app that allows the user to add items (mc’s) to a stage (holder mc).

I’ve a tooltip function that works fine except when I’ve an item on top of another item - where the tooltip (hitTest) only picks up the bottom-most item.

Say for example I add a large square to myStage - then add a ‘table/chair’ item onto myStage and move it on top of the square - when the tooltip function is called it only ‘finds’ the bottom most layer - even tho the ‘table/chair’ has a higher depth than the square and does appear on top.

Any ideas at all - loosing sleep onver this thing!

Cheers,

Pt

 
for (var mc in myStage) {
 
 if (myStage[mc].hitTest(_root._xmouse, _root._ymouse, 1)) {
   if myStage[mc].tooltip_text != undefined) {
   _global.tooltip_target_mc = myStage[mc];
   }
 }
return;
}