ActionScript 2.0 :: How To Create 3 Level Tree Menu
Aug 15, 2005Is't possible to create a 3 level tree menu? just like below:
[code]...
All the flash menu i found are only have second level
Is't possible to create a 3 level tree menu? just like below:
[code]...
All the flash menu i found are only have second level
I need to create a menu that will show all files in USB. The menu will need to auto-run when inserting the USB.
the menu need to be dynamic, so if i will add files i will see the new files in the next time that i will use the USB.
I am attempting to create a Flash5 menu tree, following the Flash4 tutorial at this [URL] I have created the two MC's (a "topMenu" and a "subMenu"). However, when I place the two MC's on the first frame of _root , the properties of the associated buttons get screwed up if I place the two MCs in a verical alignment. It appears that Flash5 makes a consolidated object, such that the _height property for the second MC is determined by adding the _height property of both MCs.
1. Could you confirm that this is what's taking place?
2. Is there a way to use Scope to eliminate the problem?
3. Other recommendations?
NOTE: if you move the lower MC out to the side, the problem disappears. Although a workaround, this seems to be a poor way for the program to function.
im trying to create a level select screen so the buttons unlock as you complete a level, so far i have this on each button:
on(release){
if(this.number <= currentItem){
gotoAndPlay(3);
}
}
[Code]...
We are looking for a vertical style menu tree. We are trying to replace an old style Java Menu, which you can see at [url]... along the left side of the window.
View 1 RepliesI am trying to use a tree menu to load SWF files into another SWF file. Its not Astra but its very similar. If I could simply get one node linking in an SWF I think I could get the rest. All I could find was how to bring in a movie clip. I have the menu set up and ready to populate but need a bit of help getting it to function how I need it.
I am using AS3, code so far:
stop();
import com.microwebber.tree.*;
import Print2Flash.*
import flash.display.Loader;
[Code].....
I have currently created a tree menu that works but I cant seem to get the scrollbar to scroll thought the information. I have attached my flash 8 file.
View 1 RepliesI read about dynamic menu in [URL] and think its really awesome menu! I stuck get to do menu like this, I'm using flashmx 2004. I get confused in action script code posted there and didn't get further to continue building.
View 9 Replieswell i had a tree menu which contain about 15 and under each of it about 3 or four sub the problem is when i press one of the sub it should gives specific status and when i press anther button from anywhere ,the 1st button should B initialized as it was i made to var to dedicate which i 've jst pressed.[code]
View 3 Repliesmaking tree menu structure in as3 flash........
menu1
1.submenu1 2.submenu2
menu21.submenu12.submenu2
and it is expandable and collapseble with some effect.also there is textarea on rightand content 4 each menu link.
I noticed there was no tree component in AS3. I plan on making a tree style menu with sub menus and stuff so should I just do this project in AS2 or is their something I can make similar to a tree component in AS3?
View 7 RepliesHow to develop dynamic XML fed menu in tree structure. The submenus should expand and contract according to the currently clicked menu item.
View 1 RepliesDoes anyone have any tips for how to approach building a two level accordion menu from scratch? ...or better yet a tutorial? I haven't been able to find anything online other than references to the accordion component which I do not want to use.
Right now I got as far as loading in all the 1st level menu items and their child items from an XML file, when you click one of the 1st level items a function is called which moves all of the 1st level items below the one you click on down far enough so that all of that item's sub items have space, they then attach to that item.
I'm using a for loop within a for loop, is there a better way?
How to generated dynamically vertical tree menu with xml file
View 2 RepliesIs there a way to group context menu items into a tree like structure?Like the Quality in built in menu.You can test it on any flash that has the built in items enabled.Right Click -> Quality -> Low.Can you do the same with custom items?For example:Right Click -> Custom Options -> Option 1
View 5 Replieswhere can find a tutorial or Tree Menu like the astra Tree Menu with a functional horizontal slider? I am dont know how to make the changes. All I need is the simple astra tree menu but I NEED that horizontal slider.
View 0 RepliesI got project, an accordion menu/tree menu, that just has 2 expanding parts. Very simple looking, but needs to look exactly like the image I was given.Not knowing much code, I luckily found an old sample of a real simple tree menu, since I didn't need any expensive components or plugins, nor did I want to deal with external XML files (can't code an XML worth a damn anyhow). But this old sample had everything in the fla, and did just what I needed it to. I attached it here, Menu_Old.zip.I took that exact same setup from the sample, and exact same code to make my current menu.At first, it did work fine, but the text looked really rough (I had to use images), but it definitely looked off. Looks fine in the fla, but when viewing the swf, the images are crap, some rollover states don't even line up.Then upon further inspection, I noticed that the profile of the original sample that I also built off of was an old Flash MX file. Profile said it was flash player 6, and actionscript 1.0. I'm guessing maybe player 6 just had crap antialiasing?Using flash CS3 (but saving these as flash 8), I was able to change the profile on the sample menu to flash 9 (& even actionscript 2.0) and it still works and looks fine, even after saving with the new profile.However, with my new menu that uses all that same code, when I use anything higher than flash player 6, my text look perfect again, but I lose all functionality!This doesn't make sense! And the guy needs this menu like yesterday! The way the text/images look in flash player 6 mode in unacceptable.
I am using flash cs3 and cs4 (same results on both).I put this post in this section because the code and original file are flash 8 or older stuff, plus in cs3, I did save these as flash 8 files.I both modified the original sample fla itself to the new menu to see if that might fix the problem, but it didn't.Nor did starting it over from scratch, despite again using the same old code.My new menu just isn't expanding, other than when profile is player 6 where it looks awful.You can see for yourself, if you change the current menu profile from player 6 to anything newer, the text looks great, but it will likely lose functionality like it does for me. Do the same with the old sample menu, you can even use the player 10 profile in cs4 and it still works.
I'm in the middle of creating a tree menu that needs to expand/collapse when items are selected. I'm drawing all my info from a DB via sendAndLoad. I'm having alot of problems getting the "math" right for the menu tho. If you look at the attached movies (play main.swf, which loads 1.swf) and click on Villas, you'll see what I mean. I need to have each of these items expand/collapse when they are clicked on. There will never be more then one layer under each main country, so it only has to do the expand/collapse when clicking a country.
View 2 RepliesHow can I develop a 2 level horizontal menu in flex 3? I want a sub menu to appear when you mouse over the 1st level.
View 1 RepliesAm trying to make a 3 level flash menu. I'm getting into Flash and Actionscript 3 all in all so I'm a beginner as well.I'm also using TweenLite for the tweening and I got as far as the attachment goes. The problem is that when the 3rd and last level comes out on a mouse hover, ok so far so good, when the mouse goes over that 3rd part, the "menu goes back" animation is triggered as if I hovered out of the whole menu It probably sounds confusing, a flash file is worth a million words so check it out. The .fla is for CS3+
View 4 RepliesI have use flash sparingly in the past. I am well versed in computers, but we can flash, very weak. Let's say this I do know how to get into Flash. This is the address for what I'm trying to accomplish. You can see the navigation in the upper left corner [URL].
I am trying to develop a menu tree that has these basic functions:
1. No heavy graphics - basically the information is more textbased.
2. The menu tree works within two tabs.
3. The menu tree using rollovers.
a. The rollovers display a graphic image or text in a "TV" box, display, underneath the actual menu tree.
"Master Swap Action" - there is also a horizontal tab selection available. The master display, largest display area, is changed based on the "Master Swap Action". Also, the menu tree is swapped out. The two areas that are swapped out correspondent to the tab's that were selected. Here is a small sample of how we control the Menu currently. It uses a language called iMint.
[Code] .....
I'm making an application that uses a branching tree type structure, and need to get the buttons to refer to and be able to manipulate individual XML nodes. I tried putting a button reference directly in the XML and setting the reference to that node with the event data, but it didn't work, because the XML didn't recognize the event.currentTarget as an actual button, so couldn't find the node that contained the click target. I assume there is a standard way to do this, since it's so common. Just for clarity, the tree will basically look like this:
PrimaryNode1
Subnode1
Subnode1a
[code]....
I need to be able to keep track of which subnode goes where for determining other data as well as graphically positioning the node and subnode data); PrimaryNode2 etc., with add and expand buttons. I can't set static references, since all of the nodes are added through the program depending on if they're needed. I tried doing this with multidimensional arrays, but since I want each level to be theoretically (but not practically) infinite with infinite subnodes, checking through the arrays got kind of messy. I just figured there has to be a standard way to set this up, since it's so common.
i got the drop down menu to come down once rolled over but it cancels out all other actions meaning it cancels the functions of the rest of the menu none of my other buttons work nowhow can i fix this?each button has its own action ie:
onClipEvent (load) {
num = 3;
}
[code].....
I'm struggling with a 2 level menu and it needs to follow this condition: The "menuItem" button should be trigged with MOUSE_OVER to open its SubMenu, cause it needs to be also associated with the CLICK event.I'm managing the objects in the display list like this:
stage
__menu
____menuItem
______bt_title (movieclip that contains textfield with title of the button)
[code]....
how should I manage the EventListeners ?I've done like that:
Code:
menu_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
I should be able to MOUSE_OVER the menuItem to open the subMenu, and leave it open while I'm still able to MOUSE_OVER and CLICK the menuItem.bt_title and every other subMenuItems.If i do:
Code:
menuItem.mouseChildren = false;
then i don't have access anymore to its children. If i do that:
Code:
menuItem.mouseChildren = true;
menuItem.bt_title.mouseEnabled = false;
menuItem.menufill.mouseEnabled = false;
menuItem.tab.mouseEnabled = true;
then I get the "epileptic" effect created by continuously mousing OVER and OUT the menuItem. Is there something to do with the capture / bubbling phase of the event flow?Where exactly should I place the listeners?
Does anyone know how to create family tree. Reference of [URL]
View 1 Repliescreate family tree using as3 from xml.
View 1 RepliesI need help coding this menu system and cant find any tutorials or templates on multi level (4) drop downs. I dont know weather to make everything a movie clip and load the mc's or to place buttons inside a movie clip. Everthing will be onrollover.
View 1 RepliesUsing Flex 4.1, i'm trying to create a Tree element with a custom ItemRenderer (MXTreeItemRenderer). my problem is that whenever I fold and unfold a root item, the order of the items change.. it's weird like maybe the XML is not formatted properly.
[Code]...
I've messed around with XML+FLASH menu systems (downloaded from various Flash resource sites) on a novice level . As in, I know how to modify the XML file to have the content I want and where to rename the XML file in the FLA if need be. But I've never had to actually manually modify any functions within the FLA before. I'm really green when it comes down to diggin' within the Flash coding. Anywho, I came upon this really nice horizontal/glide menu from a way talented flash guru who was nice enough to share his source files with me...
[Code]...
How create Context menu in AIR application plus how add sub menu against any parent item in Flex?
View 2 Replies