Hi,
I was wondering if someone could help. I’m not new to ActionScript, but I’m new to using XML in flash, so bear with me.
I’m trying to create a drop down menu, using the tutorial XML Driven Drop Down Menu, on this site. But instead of menus opening when you hover over them, I want you to have to click them. But when I change the actionscript from onRollOver to onRelease, it doesn’t work.
Does anyone know what I’m doing wrong?
Here is the code that I’m using
[COLOR=“Lime”]Before: this is what is in the Tutorial[/COLOR]
[COLOR="Red"]curr_item.onRollOver = curr_item.onDragOut =[/COLOR] function(){
var x = this._x + this._width - 5;
var y = this._y + 5;
GenerateMenu(curr_menu, "submenu_mc", x, y, 1000, this.node_xml);
};
[COLOR=“lime”]After: this is what i’m trying to change it too[/COLOR]
[COLOR="Red"]curr_item.onRelease =[/COLOR] function(){
var x = this._x + this._width - 5;
var y = this._y + 5;
GenerateMenu(curr_menu, "submenu_mc", x, y, 1000, this.node_xml);
};
I’ve tried leaving in the [COLOR=“Red”]curr_item.onDragOver[/COLOR] in but it still doesn’t work?
I’m trying to make a menu like on this site http://www.arteye.com/eyemain.html click “projects” and then a submenu appears click “web” and a list of projects appear i.e.
Any help would be great. Thanks