|
|
#1 (permalink) |
|
Junior Member
Join Date: Mar 2009
Posts: 1
|
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 |
|
|
|
|
|
#2 (permalink) |
|
OYXLUSFlash.com Staff Member
|
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);
}
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 04:41 AM.




:



Linear Mode
