Make XML-Driven Drop-Down Menu Horizontal?
Oct 13, 2009How do you make the XML-Driven Drop-Down Menu[url]...
View 1 RepliesHow do you make the XML-Driven Drop-Down Menu[url]...
View 1 RepliesI've read Sen's tut. on making the xml menu, but I couldn't spot and/or find a way to make the menu horizontal rather than vertical. I would very much like to use this effect as it would make my site so much easier to update as far as more or less links go.Here is the code from Sen's tutorial:
Code:
GenerateMenu = function(container, name, x, y, depth, node_xml) {
var curr_node;
[code]......
I have this xml driven menu with submenus that works horizontally and i want to space the menu items and submenu by getting the textWidth of the first item and placing the 2nd item next to it and then the 3rd item next to the 2nd and 4th next to the 3rd etc etc so they all sit side by side horizontally without using a fixed space for all of them. here is my code:
Code:
this._lockroot = true;
//
_level0.fmt_container = _level0.text_formats_container || {};
[Code].....
I love Senocular's XML-Driven Drop-Down Tutorial. But I can't seem to get it to make the menu headers look different from the submenus.
View 5 RepliesI love Senocular's XML-Driven Drop-Down Tutorial. But I can't seem to get it to make the menu headers look different from the submenus.
(and if anyone is interested, i've turned it into a horizonal menu... reply and i'll post the code. better yet, help me fix the GUI issue and i'll post it )
I have been working on building a XML menu and I have been able to create the main menu but I am not sure how to add the sub menu items in a drop down. I have included a zip file of my little test project which is CS4 and includes the fla and xml file.
The menu items consist of the following and the sub menu options are listed. As I said I have been able to create the main menu but I am not sure how to add and display the sub menus.[code]...
I've been taking advantage of kirupa's excellent tutorials for quite a while now, and lurked in the forums from time to time, but not registered until now. I'm finding myself having some problems that I seem to be unable to overcome, I've been trying to create a variant of the XML-driven drop-down menu that instead of displaying the submenus to the right of the mainmenu inserts them inbetween the mainmenu elements.[code]
View 2 RepliesI have checked this tutorial in kirupa website but this is vertical xml drop down menuI would like to change this into horizontallybut when i try to do this through change the codethe submenu also goes horizontally which i dont want that Basically i want main menus to be horizontal and submenus to be verticallyAs which code has to be changed so that main menu will be horizontal and submenu's will be vertical
View 2 RepliesI want to add actions (other than "gotoURL") to the XML Driven Drop Down Menu (tutorial on this site) - particularly internal site navigation - ie, gotoAndStop().
View 1 RepliesI'm having truble understanding it all really... if anyone managed to complete the tutorial start to finish without scratching their heads
View 3 Repliesis there an AS3 version of the XML-Driven Drop-Down Menu tutorial available.
View 3 RepliesI have followed Kirupa's tutorial on an XML driven drop down menu. On this menu, when a submenu is opened, it opens next to the button the mouse is hovering over. I need the submenus to open at the top of my flash page, does anyone know how to do this?
View 3 RepliesI'm slowly trying to get my pea sized brain wrapped around using xml in flash.my question is how do i convert what senocular has here:
Code:
Actions = Object();
Actions.gotoURL = function(urlVar){
[code].....
whats up everyone, awsome tutorial but i don't like the menu being vertical so i changed it to horizontal. bold parts i changed...
[Code]...
I am trying to use Kirupa's XML drop down menu(action script 2.0): aka: [URL] however I cannot have it output the childNode. This is because it is using a for loop with the curr_item variable. when I try to trace the for loop count variable, it just returns the last for loop variable. I basically want it so that when I click on a button on the 3rd tier submenu, I want it to output all the prior tiers that the button belongs in.
View 2 RepliesI would like to add a "show/hide" command to an item in this menu.For instance:
<item name="home" action="gotoURL" variables="http://www.kirupa.com"/>
to:
<item name="home-1" action="gotoURL" variables="http://www.kirupa.com" show="true"/>
<item name="home-2" action="gotoURL" variables="http://www.kirupa.com" show="false"/>
Question regarding the tuturial:[URL]
change the width of the dynamic text field that each text nav item from the xml loads into so that the width changes depending on what is in the xml.
So the width of the button would change depending on the ammount of characters entered.
this menu in this website can i change hte menu from vertical to horizontal or someone have horizontal menu with drop down sub and XML can give i can use ??
View 2 Replieshow to create a drop down menu in Flash AS2 that drops vertically and can go horizontally as well.
View 3 RepliesI have designed a horizontal scrolling menu that currently contains buttons that load external swfs when pressed. Works great.What I'd like to do is have the buttons open vertical drop down menus instead of loading external files.
View 0 RepliesI've used the tutorial for the XML Driven Drop Down Menu to create the main navigation for a site i'm doing, it's all working fine except I want to keep the 'current' area highlighted after it's clicked on. The rollOver events are defined in the AS but when I tried adding a function to change the colour of the item it either had no effect or broke the nav eHere is the code (from Sen's tutorial modified with new actions):
Code:
// generates a list of menu items (effectively one menu)
// given the inputted parameters. This makes the main menu
[code].....
Any tutorial or how to make a horizontal sliding menu ,like in the home page of this website [URL].
View 2 Repliesi m looking for a script to make a horizontal sliding menu just like one of the at the site [URL]
View 1 RepliesI need a tutorial for a hierarchical drop down menu system that drops down 3 sub levels. Do I make the items in the sub menus individual buttons and then insert them into a movie clip or make every sub menu item a movie clip and insert them into buttons?
View 1 Repliesi hav found a tutorial about dragable on ur site and i played w/ it for while, however, when i tried to make it go vertical instead of horizontal it doesnt work any more...heres the code, can any1 explain to me whats wrong w/ it?
actionscripts under dragger, <drag>
onClipEvent (load) {
_y = _root.box._y-_root.box._height/2+_height/2 ;[code]..
make dynamic horizontal menu working inside movie clip instead of main timeline just like as it now.
I cant get it to working so i need you if you can assist with little coding.
I am trying to make a drop down menu for my website navigation. Right now my navigation is just text and I want to have drop down on only a few links. I only want to have text no shapes as buttons just text.
View 3 RepliesI'm having issues with the following menu. I've been adapting a script from eveloper/actionscript/xml_dropdown_menu.htm into actionscript 3. When I get to the last level of the menu it won't link properly. It always takes the last url of the bunch as the url for all links in that branch of the tree.
View 1 RepliesI need to find an action script that tells a random movie clip scene to play... You see I have a movie clip with two frames ( each with "stop" in the AS), but when I export the film, I want it to randomly pick which of the two frame to show
View 6 Repliesive followed Senoculars drop-down menu tute, awsome stuff, but it seems the submenu's dont disappear to well when you roll out. ..They only disappear if you click on another menu item or when you click outside the menu.
View 13 Replies