|
|
#1 (permalink) |
|
Junior Member
Join Date: Nov 2008
Posts: 4
|
Hi again Adrian,
I have now the need to show in the textbox (result_txt) not only the name of the item clicked but the complete route (category1/category2/.../item). This way the user could see the position within the contents tree of the last clicked item (that is, the last loaded external movie clip or actual content of the screen), while he surfs the menu looking for another item to click on (another different content to be loaded). Could you give a hand here? Regards, Javier |
|
|
|
|
|
#2 (permalink) |
|
OYXLUSFlash.com Staff Member
|
Try this:
Code:
PList_mc.onItemSelect = function(n:XMLNode) {
var path:String = "";
while (n.parentNode != null) {
path = n.attributes.title+"/"+path;
n = n.parentNode;
}
result_txt.text = path;
trace(path);
};
Last edited by Adrian; 04-23-2009 at 06:36 PM. |
|
|
|
|
|
#5 (permalink) |
|
Junior Member
Join Date: Mar 2009
Posts: 5
|
sweet! thanks alot Adrian!
One more thing, is there a way to show the tree in the top title, but adding every submenu, i.e.: my menu goes like: framework -> management -> methods > items. I want to show in the top title the path im going (clicking) down the menu. Is that possible? many thanks in advance! cheers |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 01:50 AM.








Linear Mode
