Function doesnt work

Hello everyone, I have posted already in the Flash MX 2004 forum, but I think there is best since this is something pretty basic. This is my first time creating a user defined function that actually will save me time for something, but it doesnt work! I think it should be pretty simple and I dont get any errors but it just doesnt do anything:


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);
}

If Im not mistaken, when I run the function with the parameter “services” it should read like this including the eval: _root.services_button.gotoAndStop(2); but really it doesnt do anything. :hurt: None of the commands work, as if the target was wrong but… well Im really confused… Any help would be GREATLY appreciated.

Ted