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.
(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'm trying to create a large site where I'm using AS2.0 classes to manage everything. I've started working on porting the XML drop down menu by Senocular into a XMLMenu class with limited success. I have two issues/problems.I'd love to offer this AS2.0 class to anyone once I have it figured out. (One note, it's already slightly modified to be a horizontal menu with the submenus appearing below each menuitem).
#1: On top level items that are in the XML that don't have submenu's (they are just <item/>), I get a weird extra menuitem with "undefined" as the label, and the placement is off by one menuitem.
#2: I'm not getting the submenu's to appear at all. I thought it was an XML issue, but I'm pretty sure it's getting the XML right now...I wish I had more info to give here.
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]
I 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
I want to add actions (other than "gotoURL") to the XML Driven Drop Down Menu (tutorial on this site) - particularly internal site navigation - ie, gotoAndStop().
I 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?
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.
I'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
I followed the XML based menu by senocular a long time ago and modified it to display a title when the sub menu is chosen simply a movie with an image of a menu button in it: http:[url]....I need to modify this so that when the title is hovered over it displays the sub menu. Essentially imitating the behaviour when the first menu is hovered over.
[URL]..i've been trying to create something like this for ages but haven't been able to - quite new to actionscripting.anyway, i want to be able to display text in the boxes so that it relates to my website. at the moment, it'll only generate "item0, item1, item2, etc." but i want the text to display "home, gallery, etc."
here's a part of the script that i think needs to be edited to get it working but i don't seem to be able to do it.
[Code]...
there is 1 movieclip in the library called "item" and this is being re-used i think. but i don't know how to edit this source file to allow different text to be shown. also, if someone can let me know how i can add in the actual links that would be fantastic. ie: i want to go to home.html when home is clicked, go to gallery.html if gallery is pressed.
I'm working on a navigation bar based off of senocular's amazing XML drop-down menututorial. I've managed to make the menu horizontal, and changed the boxes from rectangles to squares. All of that works fine. Now I need to figure out how to add an image to the inside of each element, and I can't figure out how to do that. I've addedCode:curr_item.image = curr_node.attributes.image; to the AS, and added an 'image' movieclip inside my menuitem, but that doesn't appear to work. Here's my complete actionscript:
Code: GenerateMenu = function(container, name, x, y, depth, node_xml) { var curr_node;
I am going through Senocular's beautiful tutorial on xml driver drill down menu and was trying to change the the font color with rollover effects. I have a function that I can use for this, but I am not able to call it appropriately from the main program.
I have attached a file with a senocular springy menu that i have been playing around with. One thing i would like to know how to do is - towards the bottom of the script on _root, a comment says: // for unique content in item clips, attach those / movie clips to the item clip here i have tried many ways to make different content in each menu item, but to no avail (my knowledge of actionscript is not that great). What i would most like to do is have different text on each item and a different onRelease action for each one.
I've been using Senocular's free transform tool: [URL] in tandem with an image upload (using the fileReference class) so that users can upload an image and the transform it.
The free transform class has a function that allows you to restrict the scaling of the movieClip that you apply the free transform to, but it works on a 'scale' rather than specific height and width properties. My problem is, that I don't know what he dimensions of each uploaded image will be, so if it's restricted to a scale, some images will be allowed to be bigger than others....
I've been hunting for tutorials on XML driven AS3 menus. I've found some really cool stuff, but nothing that does what I want, and most don't really explain the "hows' involved in getting the XML into the flash. I want to dynamically load menu buttons based upon an xml document in horizontal fashion with sub menus that load 10px down and to the right of the main menu button. With each item in the sub menu filing to the right. I'd also like to have that light up bar track the main buttons so that as the mouse moves over the bar slides to it.
Here's the code for the bar: ActionScript Code: import fl.transitions.Tween; import fl.transitions.easing.*; button_mc.buttonMode = true; button2_mc.buttonMode = true; button_mc.addEventListener(MouseEvent.ROLL_OVER, hover); button2_mc.addEventListener(MouseEvent.ROLL_OVER, hover); function hover(e:MouseEvent):void { new Tween(bar_mc,"x",Strong.easeOut,bar_mc.x,e.currentTarget.x,1,true); }
Most of the XML driven code I have found obviously doesn't have a static instance name and use addChild()
I'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;
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:
I'm new to actionscript 3 and could really use some help to develop an xml driven menu system. I would like to make the menu system similar to the navigation used in this site. [URL] I just need a simple version of this maybe 2 - 3 categories on the left and all of the children for them on the right.
I have been following and bastardising a computer arts tutorial for a dynamic flash site, its a really good tutorial and I'd like to keep going with that format/style, but I'm pretty new to the whole scripting thing and am finding it a bit of a headache, so was wondering if any kind souls would help me work out how to add submenus to the code below.the main menu button is a movie file(btn_projects_main) consisting of a button (button) and a text box(txt) and is 3 frames long to allow for the different states: What I'm looking for is a set of sub menus which load horizontally below the main menu buttons, here is the code which has been altered slightly (thanks to Ned Murphy for his help and patience with that)
// Setup some initial variables // Hide the button that will display a web link_root.theUrl._visible = 0; // Hide the image icons in the project loader// The image icons are simply there to make
I would like to use an XML-driven menu on my site and everything works fine so far, but the XML is connected to a CMS, meaning new menu items can be created through the CMS and added to the Flash menu. That's works, too. Here is the problem: Browsers usually caches XML files,to modify the line where Flash retrieves the XML file:e.g. instead of getting: 'menu.xml'. It should more look like this: menu.xml?'+Math.random(),(or whatever is the exact syntax for a random number is in AS. This would kill the cache, correct?Here is the AS code:
// declare the package package com { // import the needed AS packages
I'm trying to make a real simple flash menu, and I am using the "Squirrel Finder"-tutorial as a base. Problem is, when I trace my variables desc and swfURL they are correct, and the numbers on the buttons work fine as well, only when I click on the buttons all of them point to the last post in my XML, i.e., buttons 1,2,3,4,5 all point to swf 5.
Code: function skapaMeny(menu_xml) { var proj:Array = menu_xml.firstChild.firstChild.childNodes; for (var i=0; i<proj.length; i++) { var desc = proj[i].firstChild.childNodes; var swfURL = proj[i].firstChild.nextSibling.childNodes; [Code] .....