Old 03-15-2009, 10:49 PM   #1 (permalink)
Junior Member
 
Join Date: Mar 2009
Posts: 1
Default Url in first and submenu

Hi i have a question..

how do i create an external link in both sub and main menu.

i followd your insturction..

whenever i insert

menu_mc.onItemClick= function(node:XMLNode, level:Number){
if(level == 1){
getURL(node.attributes.url, node.attributes.target);
}
}

the first item buttons are active.. but not the sub items

whenever i insert

menu_mc.onItemClick= function(node:XMLNode, level:Number){
if(level == 2){
getURL(node.attributes.url, node.attributes.target);
}
}

only the subitems work.. how do i get both to work??

thx
monkeyman is offline   Reply With Quote
Old 03-16-2009, 07:17 AM   #2 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,981
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

Well, I think it's pretty obvious, with the if(level == 1) works only for level 1, while if(level == 2) works only for level 2, removing that if statement will work for both, and it's the logical thing to do. Of course, this is stated in the help file, but it seems like nobody wants to read it :


Code:
menu_mc.onItemClick= function(node:XMLNode, level:Number){ 
        getURL(node.attributes.url, node.attributes.target);
 }
Adrian is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:41 AM.