onContextMenu sample - can't replicate

I’ve looked at this sample: docs.dhtmlx.com/scheduler/sample … xMenu.html

But when I copy in the relevant code I get an error on this line:

		var menu = new dhtmlXMenuObject();

The error is:
Uncaught ReferenceError: dhtmlXMenuObject is not defined

I’ve downloaded the latest dhtmlx Suite and the relevant dhtmlxmenu.js is loading correctly (I tried putting an ‘alert’ line in the dhtmlxmenu.js and it fired). Do you have any ideas what I’m doing wrong?

Does it matter that I’m using the latest version and the sample above uses an older version?

thanks

I’ve tried to use latest dhtmlx menu with this sample and it works fine.
The only change is following:

//			menu.loadXML("./data/dhxmenu.xml?e=" + new Date().getTime());
			menu.loadStruct("./data/dhxmenu.xml?e=" + new Date().getTime());

Because currently dhtmlxMenu doesn’t have loadXML function.