Creating A Pull Down Menu?

Apr 22, 2010

I'm trying to create a pull down menu. Not one that drops down when rolled over but one that drops down when clicked and stays down until an item is selected. Once an item is selected or the menu is clicked out of it retracks again.

My strategy is to create a movie clip for the initial menu that when clicked jumps to another movie clip where ther menu is extracted and houses movie clip buttons that hightlight when rolled over and when clicked redirect to another movie clip related to the button that was selected.

is this the proper way to do this? And second: can you offer some direction for the action script?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Creating Loop To Pull Data From XML And Load Into SWF

Mar 25, 2005

I am currently scripting a Flash application at work which will pull data from an xml file (.jpg's and text) into template swf's created by our designers, for use in online product commercials, realty/property tours, etc. I am creating a loop which will pull data from the xml and load them with createEmptyMovieClip(). Here's the code:

Code:
_root.dynLoad = function() {
trace( "initializing dynLoad function..." );
for( _root.g = 1; _root.g <= _root.featLength; _root.g++ ) {
if( _root.g == 1 ) {
this.createEmptyMovieClip( "dynPic", this.getNextHighestDepth() );
[Code] .....

I am not the heaviest with actionscript and I can get the first two pictures to load, but after that the pics get loaded into the duplicated clip. I tried my hardest to get the else block to dynamically increment the "dynPicNew" ( ex. load it into "dynPicNew" + _root.g ), but I can't nail it! How can I get the duplicateMovieClip() to increment the load target dynamically?

View 4 Replies

ActionScript 3.0 :: Pull Data From Sqlite To Custom Menu?

Oct 14, 2011

I'm trying to bring data from an sqlite database into a custom made menu. I have the menu working using an array with the code shown. But, now I would like the data to come from an sqlite database.

The code shown for the database, I have used for a previous job that pulled the data into a dataGrid. I now want that same data to put into my custom menu instead of a dataGrid. How would I change the second code to do this?

I think my main question is about the "watername_dg.addItem" in the second code below and how to change that to bring the data into my buttons.

ActionScript Code:
//////////////PULLING DATA FROM AN ARRAY TO BUILD MENU//////////////
var _menuArray:Array = new Array("Apples","Oranges","Pears","Grapes","Limes", "Carrots", "Peas", "Beans");

[Code].....

View 8 Replies

ActionScript 2.0 :: Pull Out Folder-style Menu That Scrolls Out WITH The Content As Well?

Jul 7, 2004

I'm having a hellova struggle with this one. I want a pull out folder-style menu that scrolls out WITH the content as well. When one tab is out and another is clicked, I want the tab thats no longer used to close itself.[URL]..

View 3 Replies

ActionScript 3.0 :: Creating A Menu With Three Movieclip Buttons On A Main Menu?

Nov 12, 2008

I am looking at creating a menu with three movieclip buttons on a main menu. I want to keep these buttons on the top of the screen at all times. I am opening different swf's and I want to make sure that the buttons are still showing. I know there is something with changing or swapping the depth of the movie clip when it loads the new swf's in, but I have not found anything that is seeming to work.

View 4 Replies

ActionScript 3.0 :: Creating Drop Down Menu When AddEventListeners To Check The Clicks On The Invisible Buttons On Frame 19 Of The "menu" Movieclip

Nov 10, 2009

I'm creating a drop down menu and when I addEventListeners to check the clicks on the invisible buttons on frame 19 of the "menu" movieclip, it gives me an error. T really hate doing rollover with actionscripts. The download link for the fla can be found in below. Sorry for posting an external download link as the file is 7mb+! [URL]

View 2 Replies

ActionScript 3.0 :: Creating A Sub Menu?

Dec 28, 2010

Basically, I have a navigation bar with several buttons. When a button is pressed, a new sub navigation should be displayed in a different location. So on my main nav, I have mouse events, and on the click event, each button points to an xml file

function mouseClickEvent3(eve:MouseEvent):void
{
setLoader("XML/path.xml");
}

[code]....

Now all the menus get created no problem.  The problem is this.  One main button produces a sub menu with six buttons, which are displayed no problem. I then click on another main button which has 3 sub buttons. These 3 buttons replace the 3 buttons that the first button displayed, but the last three are not removed. Sometimes, only two buttons seem to get replaced.

What I really need to do is this.  Before any buttons are created, I need to somehow remove any buttons which currently exist.  I have tried things like this before the for each loop

for (var y:Number=0; y<i; y++){
removeChild(menuItem);
}

Nothing seems to work though.

View 9 Replies

ActionScript 2.0 :: Creating A Xml Menu?

Jul 16, 2010

Its not exactly an xml menu, but I have imported the xml attributes and have aligned them and want them to act as movieclip

Code:
var myXML:XML = new XML();
myXML.ignoreWhite=true;
myXML.load("words.xml");

[code]...

The problem with this code is that I click on any of the text links (attributes from xml) , only the last text changes its color. I want it to function in a way, that when I click on a link.. that should change the colour and not the last one... I know why its working that way but can't figure a way out to correct the code. Here is the xml content.

Code:
<content>
<section name="about us" />
<section name="about you" />
<section name="about them" />
</content>

Whether I click on about us or about you or about them,in all cases about them changes its color from 0x00cc00 to 0x00ccc0

View 7 Replies

ActionScript 3.0 :: Creating A Rotating Menu?

Mar 8, 2009

I have created a rotating menu using AS3 from a tutorial here; [URL]I have it working now but I am trying to change the rotation axis, so the circle responds to the mouse vertically(Up &down) as at the moment it is hoizontally(left & right)

View 1 Replies

Flash 8 - Creating Menu With Different Options?

Mar 15, 2009

I am using Flash 8 by the way. Anyways what I am doing is making a menu with different options. I need the user to click on various buttons from the menu and then after those buttons are clicked, an animation needs to play and then return to the original menu. I have got the mouse to follow my custom cursor and made the general outline of the menu, but no buttons so far.

View 3 Replies

ActionScript 2.0 :: How About Creating New Menu From Existing One

Mar 16, 2012

I buy a template from internet and want to edit it according to my requirements but I am facing a serious problem that is I need to add some extra menus I have only one idea that I copy existing menus frames and paste it in to new layers and than remove their previous names and links. But when I change the name it also change the previous menu name. I can't understand what I do? I try some other techniques but there is no solution till. Code is action script 2.0 and tool I am using Flash cs4 Professional.

View 1 Replies

ActionScript 2.0 :: Creating A Start Menu

Jan 25, 2009

I assumed that the Idea was simple:one button on stage, when clicked, opens a list of buttons and when one of those is clicked, an action is carried out. I have all the tweens made, so in theory, the animation should work. I have the main button (start) set to control the show/hide of the main button plate:[code]which should play the animation and show the buttons (frame 16 of the movieclip "this.plate" which also has stop(); in the actions)All of the animations work the same way. the button performs 2 actions, when on frame 1 tells flash to play frame 8 and when on frame 16 tells flash to play frame 17 (which then loops back to frame 1 and waits stop(); The first menu worked until I added the submenus and now for some odd reason (debug and output give no errors) if I click the "start" button, nothing works.I have 6 sub menus, all are separate movieclips with instance names. the clips are named plate2 through plate 7 (plate is the main buttons movie clip in the parent level)

View 2 Replies

ActionScript 3.0 :: Creating A Dynamic Menu?

Jan 8, 2010

I got the first part to work. The only problem is when I click any buttons it produces errorTypeError: Error #1009: Cannot access a property or method of a null object reference.at resume_fla::MainTimeline/frame1()not sure what I have to do. All it's supposed to do is when you click a button the target movie clip plays frames 2 - 10 and the previous movie clip plays frame 11 - 20. Not sure what's the problem here.

ActionScript Code:
//variables
var curMC;

[code]......

View 1 Replies

ActionScript 2.0 :: Creating Flash Menu?

Feb 10, 2004

my boss is requesting me to make a similar menu like this site :look on the left side, when you click it it goes down and the other items just close and what my boss wants is that when you click something the link changes colors so it will be determined that your on that page

View 10 Replies

ActionScript 2.0 :: Creating Basic Menu Using AS

Mar 1, 2008

i am working on my a portfolio site for my friend who is a photographer and am looking to create a basic menu that when any menu item is moused over it enlarges and the other menu items move to make room for this enlarged menu item.

View 4 Replies

ActionScript 3.0 :: Creating Dynamic Menu?

May 28, 2009

trying to create a menu with submenus (after) but I can't multiply and load the array content in each one item..Just check out my code:

Code:
var links:Array = ["Link1", "Link2", "Link3", "Link4"];
var bt:MovieClip = new button();// from Library

[code]....

View 1 Replies

ActionScript 3.0 :: Creating Xml Menu In Flash

Aug 21, 2009

I'm having a problem creating an xml menu for a personal flash site. The site that has a blog in the background. The blog updates from an xml document. But I want to make menu buttons out of words from the xml. I'd like to assign buttons to 4 random words from the xml (which would change each time I updated the xml). The catch is, I would only like to pick words that fall on the left side of the page (say between x = 55 to 250). The buttons would open an overlay on the same page. So 4 buttons on the left, with overlay to the right. Here is the current XML loading code in actionscript:

[Code]...

View 3 Replies

ActionScript 3.0 :: Creating A Rotating Nav Menu?

Nov 2, 2010

I am working on a project and am trying to create a menu that upon clicking a certain point rotates to a frame and then plays a clip. Something similar to this navigation would be great:[URL]..

View 2 Replies

ActionScript 2.0 :: Creating A Dynamic Menu With XML?

Jan 7, 2004

I'm creating a dynamic menu with XML, and this is part of my code. I've written in the code what the problem is:

[AS]
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {

[Code]....

View 2 Replies

Creating Menu Navigation For Flash Project

Jan 14, 2010

I am an intermediate flash user and need to create navigation for my flash project. Basically what I have is one swf with several scenes and I need a small pop up menu with clickable buttons to jump to different scenes. I know scenes are not generally recommended, but I cannot load separate swfs due to technological constraints at my company. The way my project is set up is like one continuous movie that plays from start to finish. I don't need a player controls or anything. I have divided it into scenes to make it easier to work on the fla.

It starts and plays through to the end, one scene after the next. What I want is a small menu button at the bottom that when clicked pops open a list of buttons that can be clicked to jump to and play a different scene. It never stops or anything, just jumps to and plays the chosen scene. I have created a movieclip with a menu button and the pop up list with buttons. I can get the list to open and close, but it won't jump to a different scene. Is this because it is in a movieclip?

View 2 Replies

ActionScript 3.0 :: Creating Dynamically Loaded Menu?

Feb 19, 2010

I'm creating / adapting a horizontally XML dynamically loaded menu. Load the text for each menu item from XML, and then I place this text in an array. Then later in my script I run loop through the array to add the menu items / text to the menu.I want the horizontal menu just to be a line of text so like:Menu item | Menu item two | Menu Item threeEach one gets put in a dynamic text box. I want to find out what the width of menu item one is so I can set the x position of the next menu item.I was thinking I could as I loop through and create each menu item, add the widths (using TextField.textWidth property) to an array and then use info in there to set the x position of the next menu item.

View 1 Replies

ActionScript 3.0 :: Creating Menu For List Items?

Sep 12, 2010

I have been working on making a menu for list items. The file below has an animated menu. If you click on Artificial Intelligence on frame 60, it jumps to frame 61 (a specific section for that list item). How do I make the Artificial Intelligence button on frame 61 jump back to frame 60? I dont know where to add the action script for the function. I need to add a similar script to all 9 list items, do they go on one actionscript file? if so what location? [URL]

View 2 Replies

ActionScript 3.0 :: Creating Menu That Loads SWF Onto Stage

Sep 21, 2008

I am real new to action script 3 and I am looking for a way to create a menu that loads my swfs onto the stage, I want the swfs to replace each other when a new button is selected but dont know what function to use.

View 8 Replies

ActionScript 2.0 :: XML Menu Component - Creating Subclass

Mar 18, 2004

I am in the progress of creating a XML menu component, and I am going well so far. My code is a bit messy and currently for the button press actions for the menu items I have done this below:
(a method used by Senocular in the xml menu tute)

Code:
Actions = Object();
Actions.loadGallery = function(xml, name) {
_root.transfer = new Object();
_root.transfer.galleryData = xml;
_root.transfer.galleryLabel = name;
[Code] .....

This is just sitting in my main class (called XMLMenuClass) and is not a prototype as you can see, I would like to know how to re-implement this as a class of its own, i.e. a subclass of the main class called MenuActions?

View 9 Replies

ActionScript 2.0 :: Prevent Recurent Creating Of Menu?

Jul 9, 2005

I use this code for creating menu:

Code:
// naming of menu_button
items = ["O firm›", "Pr¯myslo chlazen", "Klimatizace", "B technika",

[code].....

View 5 Replies

ActionScript 2.0 :: Creating XML Menu With Icons And Text

Aug 16, 2006

I need to create a XML + FLASH menu, the main menu contain icons & text, I tried to download some example from the internet. How do I change the subMenu into "text" format instead of duplicate single "MC" (that means someone click on the mainmenu, there are related submenu come out under the main menu & show the submenu's text from xml file)?

View 2 Replies

ActionScript 2.0 :: Creating A XML-menu - Controlled With Keyboard

May 28, 2007

I am creating a dynamic menu, that is supposed to be controlled by the keybord, or buttons. The menu has several submenues, so I am thinking of setting up a XMLdocument to read from. Do anyone have a easy-to-understand .fla or a good tuturial on this subject?

View 2 Replies

ActionScript 2.0 :: Creating Menu From Xml Whit Set Interval

Aug 5, 2003

i'm trying to create an menu from a xml file whit two attriburtes, name and link. But i want to each button appear whit 1 sec interval from the others until the menu.lenght is finishes

View 6 Replies

IDE :: Creating Animation Gallery Of Images With Menu?

May 4, 2009

I want to make the following gallery of images: [URL]. I refer to the section of the medium, which include pictures and a menu that is sliding to click. That is the menu that I create and can not do it.

View 6 Replies

ActionScript 3.0 :: Creating Dynamic XML Menu With Dropdowns?

Apr 26, 2010

I have been working on building a XML menu and I have been able to create the top level menu but I am not sure how to add the sub menu items in a drop down. I have a link to a zip file containing my XML and FLA file. I am using CS4. [URL]. The top level menu items consist of the following and the sub menu options are listed. In this list, Items 1,2 and 3 are top level menu buttons and item 4 is a sub menu button that would drop down from item 3.

Animated Logo : 1
Welcome Video : 2
About Us : 3
sub menu option Our Mission : 4
We Make It So : 5
sub menu option Web Design : 7
sub menu option Web Hosting : 8
Our Work : 9
sub menu option Cambria Suites Akron/Canton : 10
sub menu option Westfield Insurance : 11
Our Staff : 13
sub menu option Our Developers : 14
sub menu option Contact Us : 15

View 1 Replies







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