ActionScript 3.0 :: Making A Tree Style Menu With Sub Menus
Sep 19, 2007
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?
I made a drop down menu with sub menus. It is a movie clip. When I drag my movie clip menu to the main timeline I don't know how to make the buttons manipulate the main timeline. Like going to a certain frame. Everytime I put code on the movie clip, it manipulates the movie clip itself. Is there a trick to this?
I'm trying to create an xml accordion menu that has main menus and a sub menus buttons (movieClips) revealed with a mask. Simple question, How do I stop the mask area which reveals the sub menus catching mouseEvents on the submenus?The main menu button is a movieClip, it has the mask sprite attached to it as a property so it can scale dynamically to reveal the subMenus. They are set as children of the main menu button container. In my code I've set mainMenu.mouseChildern = true. But when the mainMenu is clicked I change mouseEnabeled = false to help prevent the main menu receiving events. This helps on rollOver rollOut events, but when I click or mouseDown on the subMenu the mask catches the event also and activates the main menu again. I've tried the obvious mask.mouseEnabled = false; mask.mouseChildern = false; mask.hitArea = null; and even setting mask.alpha = 0 but this has no effect at all.
I don't understand why the mask has to extend the hitArea property of the mainMenu and why this can't be set to null. It also seems crazy that when mouseChildren = true the parent clip also has to receive notice of the event.
[URL]..The first menu on the page is a good example of what I'm asking about.One major addition to this style/functionality... each link needs to be added via XML (for flash vars) and it needs a scroll bar for when the amount of links exceed the height of the content container or movie clip.So it needs the style elements as you see in the link and a scrollbar for dynamic content.
I'm posting this question because I've been searching for weeks and although I've found a plethora of examples of AS3 scrollbars, none - not one, has come close to something like this. I'm just curious how someone with real AS3 knowledge would go about the situation as I'm sure this is not as difficult as it's proving. Or maybe it is. I don't know.
Here i'm setting the disclosureClosedIcon as null setStyle("disclosureClosedIcon", "nullicon"); Anybody have idea about how to replace this default icon with a movieClip?
I 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.
for a menu i use 3 MCs, when you click one of them, the two others MCs will make place for the 'options' of the clicked menu. What i want to do is give a specific _x and _y coordinates for the menus to move at when the other one is clicked (start and arrival, and have a motion tween between them). see what i mean?
i'm currently in the process of linking a movie i've made into a series of interactive scenes, which can half the outcome altered depending on if the player chooses to press certain buttons within the movie. As an example, at one point the character is asleep, and the text "Wake up" appears on the screen, at which point the viewer would press the a or the l key to do the action. If they fail to press a key, the character sleeps forever and the movie ends.I'm making this in Flash.
However, I have such a basic knowledge in actionscript and cannot find a tutorial online to help me with what i'm aiming for. I know how to switch to playing different scenes using actioscript but not how to set it up so that pressing the a or l keys (these are specific to different actions the user can take, only chosen to allow them to have both hands on the keyboard at once to give it their full concentration) to specifically play events.
I'm creating an animated (in and out) drop down menu. I've managed to get the menu to open when the user mouses over, with the buttons all selectable. However I can't seem to find an efficient method of making the drop down menu close whenever the mouse is not over the menu. Actions:
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.
I 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 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.
I 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.
well 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]
how to produce a flash menu similar to those on 2advanced.net and url....? Is each option (and it's submenu) a separate movie clip or is there some complicated actionscript involved? I am a fairly new flash user.
Ok so i was following this tutorial today at: [URL]..and its a good tutorial... with one exception. They never tell you where you can put the code for clicking on the buttons to make them functional.so now i have some good looking buttons that dont go anywhere. Any one want to take a look at this and see if you can tell me where i can put in my "click" event code.
have a site which uses the Apple Style dock component from jrgraphix.net.The issue appears to be with Internet Explorer (All versions).In Firefox the movie works without issue (ignore the transparency and positioning).As you browse between pages the SWF reloads and functions as it should.In Internet Explorer the first time you load the page and the SWF it works as it should.HOWEVER (!!!) when you browse to another page or refresh the current page the SWF functionalilty drops out and some (if not all) of the actionscript appears not to trigger.The .as file used is:
Code: class Dock extends MovieClip { var icon_min: Number;
Is 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
where 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.