Hi
Im in the progress of creating a XML menu component, and Im going well so far. My code is a bit messy and currently for the button press actions for the menu items I have done this below:
(a method used by Senocular in the xml menu tute)
Actions = Object();
Actions.loadGallery = function(xml, name) {
_root.transfer = new Object();
_root.transfer.galleryData = xml;
_root.transfer.galleryLabel = name;
_root.content_mc.target_mc.loadMovie("gallery.swf");
};
Actions.gotoURL = function(url, name) {
getURL(urlVar, "_blank");
};
Actions.message = function(msg, name) {
message_txt.text = msg;
};
Actions.newMenu = function(menuxml, name) {
menu_xml.load(menuxml);
};
This is just sitting in my main class (called XMLMenuClass) and is not a prototype as you can see, I would like to know how to reimplement this as a class of its own,ie a subclass of the main class called MenuActions?
Thanks in advance