2 Levels Accordion Menu
MORE TOPS- Forums
- Files Support
- 2 Levels Accordion Menu
-
Wraith
-
Hi,
I just purchased the "2 Levels Accordion Menu".
I am having issues with the XML code or the AS script.
I think it is probably the XML code more than anything else.
Although it also looks like the AS script may not be working properly either.
Any how I 'm all screwed up with this menu.
According to this excerpt from your Help File, I should be able to use teh given XML and AS code to make the menu click-able for firing actions.
Unfortunately everything becomes clickable and none of the subitems or items show up after the top item that has a URL attached..
////////////////////////////////////////////////////////////////////////
04. Firing actions on item click
----------------------------------------
- The handler function looks like this:
menu_mc.onItemClick= function(node:XMLNodem, level:Number){ ... }
where node is the coresponding xml node loaded from the xml file, and level is either 1 if the clicked item is a first level menu item, or 2 if it's a subitem
- To trigger a getURL action, open the xml and add for each xml item tag new attributes and modify the handler function:
<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);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////
I should be able to use the bottom code in my AS for my menu.
But what is happening is that it is only giving me the top 2 items and making them clickable to a undefined URL.
Below is my XML code.
<menu>
<item label="business owners" />
<item label="overview" url="http://www.thunderwerks.com/vdextest/busown.php" target="_blank" >
</item>
<item label="video options" />
<subitem label="on-location" url="http://www.thunderwerks.com/vdextest/busown_Onlocal.php" target="_blank" />
<subitem label="custom motion graphics" url="http://www.thunderwerks.com/vdextest/busown_custom.php" target="_blank" />
<subitem label="instant motion graphics" url="http://www.thunderwerks.com/vdextest/busown_instant.php" target="_blank" />
</item>
<item label="business/social environments" url="http://www.thunderwerks.com/vdextest/bussocenv.php" target="_blank" />
</item>
</menu>
This is a copy of the AS code from the Menu and you will see your code added to the bottom.
Stage.scaleMode = "noScale";
Stage.showMenu = false;
Stage.align = "TL";
// 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("menu_Biz_data.xml"
;
menu_mc.onItemClick= function(node:XMLNode, level:Number){
getURL(node.attributes.url, node.attributes.target);
}
You will notice I pasted in the given code from your help file from 2 Levels Accordion Menu.
Can you please help with this?
Thank you,
Wraith Posted on Aug 29, 2008 | Reply | Reply with Quote | Send PM | Report
-
alex
-
Hi Wraith,
You can contact directly the developer through your account, Oxylus has also it's own support forum at http://forum.oxylusflash.com/, or here in our forum. I'm sure they would aswer ASAP. Posted on Aug 29, 2008 | Reply | Reply with Quote | Send PM | Report
-
OXYLUS
-
Hello Wraith,
Send me the files in a zip so I can take a look. (adrian {at} oxylus {dot} ro)
Adrian Posted on Aug 30, 2008 | Reply | Reply with Quote | Send PM | Report
Newest Forum Posts
- Search Engine improvement last by dimumurray , on Dec 19, 2008
- info on video p;reloader/player last by szilaghi , on Dec 17, 2008
- play video based on radio button selection last by hdmyg8586 , on Dec 8, 2008
- Freelance Flash Programmer last by alex , on Nov 17, 2008
- Web Designer last by alex , on Nov 17, 2008
- Flash Player 10 Available for Download last by alex , on Nov 17, 2008
- Stock Flash Wishlist last by sarumitai , on Oct 21, 2008
- Internet Explorer 8 - beta 2 last by hades , on Oct 17, 2008
- Flash Help last by hades , on Oct 12, 2008
- Adobe Unveils Creative Suite 4 Web Premium last by alex , on Sep 29, 2008
- Adobe introduces Photoshop CS4 Extended last by alex , on Sep 29, 2008
- Internet 60 times faster - new gear last by johny , on Sep 28, 2008
- Flash CS4 New Features last by johny , on Sep 28, 2008
- Site Suggestions last by johny , on Sep 28, 2008
- New Google Chrome Browser (BETA) for Windows last by johny , on Sep 28, 2008
- Microsoft Commercial with Jerry Seinfeld and Bill Gates last by johny , on Sep 28, 2008
- Windows 7 is just an upgrade to Vista last by johny , on Sep 28, 2008
- Flash Juggler forum is available last by johny , on Sep 5, 2008
- Non Flash Talk last by szilaghi , on Aug 30, 2008
- Google is crawling Flash Files - Good news for SEO guys last by szilaghi , on Aug 30, 2008
- 2 Levels Accordion Menu last by OXYLUS , on Aug 30, 2008
- Files Support last by Peter , on Aug 18, 2008

You need to be logged in in order to post a reply. Please click here to go login and be redirected to the post form.