Hi everyone, I am having trouble finding info on how to have a dynamic path, I know I have asked this question before but I think it is different this time, since I am using it in a function…
This is my code, why doesnt it work?
onClipEvent (load){
function dropDown(section){
dropdownmenuTarget = eval("_root.submenu_"+section);
variableTarget = eval("_root."+section+"menuOver");
buttonTarget = eval("_root."+section+"_button");
if (buttonTarget.hitTest(_root._xmouse, _root._ymouse, true)) {
buttonTarget.gotoAndStop(2);
variableTarget = true;
trace("on");
} else if (dropdownmenuTarget.hitTest(_root._xmouse, _root._ymouse, true)) {
buttonTarget.gotoAndStop(2);
variableTarget = true;
trace("Sub Menu On");
} else {
buttonTarget.gotoAndStop(1);
variableTarget = false;
trace("off");
}
}
}
onClipEvent (enterFrame) {
dropDown(services);
}
Thank you all for your help!
Ted