i searched everywhere, i was not able to find a solution
my xml menu implementation use a “main” Menu class. This class parse the xml file and create an aeeay of MenuItem class. MenuItem costructor is (stripped down version) something like this:
function MenuItem(name: String, url: String, parent_mc: MovieClip)
parent_mc is a reference to the “container” MovieClip for Items (generally an emptymovieclip made by Menu class)
in MovieClip costructor i attack the symbol i planned to use as menu item:
this.item_mc = parent_mc.attackMovieClip("item_mc", name + "_mc", parent_mc.getNextHighestDepth());
all ok, it works. but when i try to add some behaviours to to this.item_mc like:
var thisObj = this;
this.item_mc.onMouseMove = function(){
if (this.hitTest(thisObj.parent_mc._xmouse, thisObj.parent_mc._ymouse, true)) trace("hit");
else trace("miss");
}
hitTest return always false waz wrong?
tnx in advance