ActionScript 2.0 :: "active" State In XML Driven Drop Down Menu?

Dec 11, 2005

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

[code].....

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Menu Versus Submenu Appearance : XML-Driven Drop-Down Menu?

Apr 16, 2004

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 Replies

ActionScript 2.0 :: Menu Vs. Submenu Appearance : XML-Driven Drop-Down Menu?

Apr 16, 2004

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 )

View 5 Replies

ActionScript 2.0 :: Highlight The Active Menu Item With 'Over' State?

Feb 11, 2010

Here is the code on my buttons, which work fine.[code]....

How do I setup these buttons so that when button1 is clicked, and the button1 page is loaded, that the button stays in 'Over' state?

And just to elaborate, when button2 is clicked and loaded, I want button2 to be in 'Over' state while button1 goes back to normal.

So basically, how do I highlight the active menu item with my 'Over' state?

View 1 Replies

ActionScript 3 :: Menu With Active State Shown On Click

Jan 18, 2010

Ive got a simple menu that upon hover of each item, plays a movie clip, then on mouse_out it plays the movie clip in reverse. What I'm trying to do is to have a third state (active) that is shown upon clicking. I'm thinking I need to do something along the lines of:
-When clicked, gotoAndStop(5) //Five being the location of my active frame
-Also remove the event listener that triggers the function to play the movie in reverse.
-Then when another menu item is clicked, re-add the event listener to the previous menu item so it's not stuck 'active'

My code is as follows:
// Imports
import fl.transitions.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.external.ExternalInterface;
[Code] .....

View 2 Replies

ActionScript 2.0 :: Make Flash Menu In Active State?

May 11, 2010

how to make flash menu in active state.when i click one other button the first button remain on rollover sate and do not become active. see for your self.

View 4 Replies

ActionScript 3.0 :: Set Up Drop Down In Xml Driven Menu?

Apr 23, 2010

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]...

View 2 Replies

ActionScript 2.0 :: XML-driven Drop-down Menu

Aug 29, 2006

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 Replies

IDE :: XML-Driven Drop-Down Menu How To Do Horizontally

Mar 25, 2009

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

View 2 Replies

IDE :: Add Actions To XML Driven Drop Down Menu?

Dec 9, 2009

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().

View 1 Replies

ActionScript 2.0 :: XML-Driven Drop-Down Menu?

Jan 21, 2004

I'm having truble understanding it all really... if anyone managed to complete the tutorial start to finish without scratching their heads

View 3 Replies

Make XML-Driven Drop-Down Menu Horizontal?

Oct 13, 2009

How do you make the XML-Driven Drop-Down Menu[url]...

View 1 Replies

ActionScript 3.0 :: XML-Driven Drop-Down Menu Tutorial Available?

Apr 22, 2010

is there an AS3 version of the XML-Driven Drop-Down Menu tutorial available.

View 3 Replies

ActionScript 2.0 :: Kirupa's XML Driven Drop Down Menu?

Dec 30, 2005

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?

View 3 Replies

ActionScript 2.0 :: Senocular's Xml Driven Drop Down Menu Tute?

Oct 25, 2004

I'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].....

View 3 Replies

ActionScript 2.0 :: [flash8] XML-Driven Drop-Down Menu - Vertical

Dec 9, 2005

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]...

View 1 Replies

ActionScript 2.0 :: Calling Childnodes From XML Driven Drop Down Menu?

Jun 9, 2008

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 Replies

ActionScript 2.0 :: Hide Items In XML-Driven Drop-Down Menu?

Jan 14, 2010

I 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"/>

View 2 Replies

ActionScript 2.0 :: XML-driven Drop-down Menu - Width Of Text Field Dynamic?

Feb 5, 2007

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.

View 4 Replies

ActionScript 2.0 :: Making Buttons Within Drop Down Menu Active

Mar 23, 2009

im having trouble making the buttons within my drop down menu active.basically, on the main timeline, i have a movieclip, and within it have a button that once u roll over it, will go to another instance in that timeline to display a drop down menu located below it (with buttons). these buttons do not perform any actions to the main timeline regardless where i place the actionscript or how i point to those buttons.

View 1 Replies

ActionScript 3.0 :: Best Active State Buttons

Feb 12, 2009

when a user rolls over a button, the button plays the "open" frame inside the button. When the user rolls off the button, the button plays the "close" frame of the button. When a user presses the button, the button goes to the "dock" frame of the button. Here's the problem : when a user clicks a button, all the other buttons go to their "close" frame when only the button that's previously open when the user clicks a differen button should go to the "close" frame.

More emphatically, a function is needed to check to see if any buttons are in the open state (not a frame 1) when a user clicks a buttons. The way the code is now, when a user clicks a button, all the other buttons go to their "close" frame when only the button that was open should go to their "close" frame. Thus, if any button is not open when a user clicks any button, then, that button shouldn't do anything.

[Code]...

View 2 Replies

ActionScript 2.0 :: Creating An Active State For A Button?

Jun 3, 2010

On this fla file I am having troubles creating an active state for the bikes.I have this great scrolling affect in place which is working pefectly, however now I want each bike to have an affect when you click on it?

View 9 Replies

Actionscript 3.0 :: Creating Active State Buttons?

Apr 6, 2010

I tried doing a search here and online. Most of what I found was buttons controlled via XML.I'm trying to make an "active state" button.I have 3 buttons. When a user clicks on the button it stays an active color. When the user selects another button the active color goes back and the current button stays on the color.Does that make sense?here's the code I have so far:

Code: Select allbutton1.addEventListener(MouseEvent.MOUSE_OVER, redover1);
button1.addEventListener(MouseEvent.MOUSE_OUT, redout1);
button1.addEventListener(MouseEvent.CLICK, redclick1);

[code].....

View 2 Replies

ActionScript 2.0 :: Active State Of Animated Buttons?

Jun 27, 2006

I have 8 buttons made from the same movie clip button with different states (up, over, out and active).Now I want to get the button stay active when the cursor moves to the next button to let the end user know where they've been.

View 2 Replies

ActionScript 2.0 :: Techniques For Implementing Menus With An Active State?

Jan 4, 2008

I've found two good techniques for implementing menus with an active state, these are not mine. One is very simple but elegant. The other is more script. But who says more script is always better? Could I get some opinions on which you prefer and why? Do you have a better technique perhaps?[URL]..

View 3 Replies

ActionScript 3.0 :: Write Will Keep A Button In The Active State When Pressed?

Feb 9, 2009

I've been attaining help with buttons and movieclips here, and I got awesome code from cbeech.The buttons code I'm trying to write will keep a button in the active state when pressed, and if any other buttons are in the active state, they will close up...Im posting alink to a flash file of the effect i want in actionscript 2.0 . However, I need the effect/code in actionscript 3.0. and I need it to be modular where I can easily add or remove buttons to my heart is content.

Put more clearly, when a user rolls over a button, I want the button to play the "open" frame in the button/movieclip. When the users rolls off the button, the button/movieclip goes the "close" frame in that button/movieclip. If the user presses the button, the button/movieclip plays the "open" frame and will stop at the stop (action) to stay in the active state, and if there are any other buttons open, they should go their respective "close" frame and play from there. Here's my starting code. please bear with me; Im just migrating from 2.0:

[Code]...

View 1 Replies

ActionScript 3.0 :: Creating Dynamic XML Active State Buttons?

Sep 8, 2009

I'm looking for an AS3/XML parsing pro to help me with an issue I'm having. The following xml file loads 7 icons ("url") into an array. What I want to do is create an activestate using child ("activestate") that replaces the "url" icon when clicked. I have no idea what the best way to do this would be. I've tried everything. The reason for this application is if i decide to change up the content down the line I won't have to recode anything. Just update the icons.

xml
<?xml version="1.0" encoding="utf-8"?>
<images>
<image>

[code]....

View 2 Replies

ActionScript 3.0 :: Keep The Over Or Down State Active Until The User Clicks Another Button?

Jan 14, 2011

I am new to actionscript 3. I have created buttons with up/over/down states. The button changes colour during the over/down frames.How do I keep the over or down state active until the user clicks another button?

Right now when the user puts the mouse over the buttons, they change colour, but it goes back to the original colour once they click off. I would like it to remain on the changed colour so that the user remembers which button s/he's pressed until the another one is clicked.I came up with the following code in actionscript 3 and got it to partially work:

ActionScript Code:
btn1.addEventListener(MouseEvent.MOUSE_UP, startTransparent)
function startTransparent (e:MouseEvent):void{
btn1.alpha = .6;
}

So when it's in the down state, I get the transparent state and stays there. But how do I get it back to normal when the user clicks on another button?

View 7 Replies

ActionScript 2.0 :: Showing Active State For Numbered Buttons In Xml Gallery

Jan 11, 2007

I have created an image gallery that loads from an XML file using mostly previous Kirupa threads. From Scotty's code (I think -- my head is moosh now) I got numbered buttons for navigating between the images.Each button is a movie clip with different labeled frames for "up", "active", "hover", and "down" states. I'd like to have the numbered button change color when its image is on view and then change back when a different image loads, and I can't figure out how to do that. I know part of the problem is that the onRollOut function overrides other changes, so I'm willing to give up the rollover effect if necessary.[code]

View 1 Replies

ActionScript 2.0 :: Button Press - Keep The Rollover State Active If Clicked

Aug 22, 2008

I want to have a button with a rollover state that is different that the out state. I got that part, but I also want to keep the rollover state active if clicked. I can think of a couple ways to do it but I'm certain there is an easier way to do it. I have about 8 buttons and when I click on on I want that to stay in the rollover state, then when I click on another one I want the first to go back to the out state and the new one that I clicked to go to the over state and stay there.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved