|
|
#1 (permalink) |
|
Junior Member
Join Date: Feb 2009
Posts: 2
|
Hi, i´ve got a problem with the Menue links.
This are my settings: <item selected="true" label="Reparatur" > <subitem label="Tachometer" url="tachometer.html" target="myframe" /> <subitem label="Scheiben" url="scheiben.html" target="myframe" /> <subitem label="Fahrzeugbeschriftung" url="fahrzeug.html" target="myframe" /> and Stage.scaleMode = "noScale"; Stage.showMenu = false; Stage.align = "TL"; // CLICK HANDLER FUNCTION menu_mc.onItemClick = function(node:XMLNode, level:Number) { if (level == 2) { getURL(node.attributes.url, node.attributes.target); } }; // LOAD XML AND GENERATE MENU var xob:XML = new XML(); xob.ignoreWhite = true; xob.onLoad = function(s) { if (!s) { trace("Error loading xml file !"); return; } menu_mc.data = this.firstChild; }; xob.load("data.xml"); How can i link them both, for example: <item label="Reparatur" url="rep.html" target="myframe" /> <subitem label="Tachometer" url="tachometer.html" target="myframe" /> <subitem label="Scheiben" url="scheiben.html" target="myframe" /> <subitem label="Fahrzeugbeschriftung" url="fahrzeug.html" target="myframe" /> Is it possible that the item label opens a subiten and a link? If tryed it with the settings above, but without any result. I´ll hope you can help me. Thanks Last edited by Preeny; 02-11-2009 at 02:57 AM. Reason: need help |
|
|
|
|
|
#2 (permalink) |
|
Junior Member
Join Date: Feb 2009
Posts: 2
|
Help Info:
<item label="Home" url="http://www.google.com" target="_blank" /> or for a subitem <subitem label="Browse Categories" url="http://www.google.com" target="_blank" /> .... menu_mc.onItemClick= function(node:XMLNode, level:Number){ getURL(node.attributes.url, node.attributes.target); } You have to delate the /. Now it´s running. |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 07:55 PM.







Linear Mode
