flash actionscript:
i am trying to correct an issue with the hitTest method used in one of my
projects. i have a scrolling mc that contains several mc's, and when the user
clicks on an area of the main mc, an event occurs elsewhere in my movie. it is
working for the most part, however in a couple of instances...when the mc is
scrolling down...one of the mc's does not work...when it is hit the event does
not occur. the code is below...any help is appreciated...
linkSet_mc.onMouseDown = function() {
if (this.test1.hitTest(_root._xmouse, _root._ymouse, true)) {
trace("test1 was pressed!");
//myMovie.getApp().postEvent("onSubSubNavigate", { yTextEnd: -120, ySubEnd:
113, activeSubTab: 0 });
}
else if (this.test2.hitTest(_root._xmouse, _root._ymouse, true)) {
trace("test2 was pressed!");
//myMovie.getApp().postEvent("onSubSubNavigate", { yTextEnd: -320, ySubEnd:
-27, activeSubTab: 0 });
}
else if (this.test3.hitTest(_root._xmouse, _root._ymouse, true)) {
trace("test3 was pressed!");
//myMovie.getApp().postEvent("onSubSubNavigate", { yTextEnd: -520, ySubEnd:
-165, activeSubTab: 0 });
}
else if (this.test4.hitTest(_root._xmouse, _root._ymouse, true)) {
trace("test4 was pressed!");
//myMovie.getApp().postEvent("onSubSubNavigate", { yTextEnd: -720, ySubEnd:
-305, activeSubTab: 0 });
}
else if (this.test5.hitTest(_root._xmouse, _root._ymouse, true)) {
trace("test5 was pressed!");
//myMovie.getApp().postEvent("onSubSubNavigate", { yTextEnd: -920, ySubEnd:
-445, activeSubTab: 0 });
}
}