Buttons - making a drop down menu

Hello,
I only know very basic flash. Right now, I am attempting to revamp a website. The buttons that are currently being used are only gifs that are hyperlinked and there are almost 12 buttons... I think that this is a ridiculous amount of buttons to have. It looks very cluttered.
So, I figured I should make 6 buttons and just fit the rest of the buttons into subcategorized buttons. And the way to do this is to create flash buttons with drop down menus. To see what I mean, go to this link and look at their buttons:
http://ca.msn.com/
Their buttons drop down into menus with sub-categories. I want to do this.
So far, I have gone into flash, created buttons and made graphics for the "Up" "Over" "Down" and "Hit". I have also added the menu buttons and graphics for the "Over" of each drop-down button-menu.
I have even provided the action script to link each button to where I need it to go.
HOWEVER, here is where the problem is. When I roll the mouse over the button, and then move the mouse down to click on one of the buttons in the drop down menu, the menu disappears, OF COURSE, because the mouse goes off the hit. I can't make the hit bigger, because the menu shouldn't open unless it's on the main button. But without the hit being bigger, the menu will always disappear.
IN ADDITION, I've never used flash buttons on a website before. I'm just using HTML. How do I link the button to the page? Do I save the file as a .swf flash file? And link to 6 different files? Or do I save the buttons in a line, and just use one link?
I'm on a bit of a deadline so any help is appreciated. Thanks in advance!
-Michelle

While I can't help you with your deadline, I can offer a little bit of input.  To take a Flash approach you should find a Flash drop down menu tutorial thru Google and follow thru that to gain an understanding of how to construct one.  The problem you are having with the rollover stems from needing to extend the rollover such that each element of the dropdown also carries that rollover command.  Each button needs to be assigned code to process interacting with it and linking to some other web page.  The swf file that you publish would need to be sized for holding the buttons and then must be placed on the web page.
The example you pointed to uses a CSS drop down menu, which you will likely find easier to create and manage if you have no familiarity with how to make Flash work in a web site.  I suggest going to the Dreamweaver forum and looking there for information about that approach.

Similar Messages

  • How to create a button with the drop-down menu?

    I want to create a button with the drop-down menu, which is like the 'back' on the tollbar in IE. I heard JPopupMenu can reach the certain result, but the button hadn't a down arrow. Who can help me?

    i have made something like this :
    //======================================================================
    package com.ju.guiutils
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.util.Vector;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import javax.swing.plaf.basic.BasicComboBoxUI;
    * @version 1.0 14/04/02
    * @author Syed Arshad Ali <br> [email protected]<br>
    * <B>Usage : </B> ButtonsCombo basically performs function button + JComboBox, if we have different options for
    * <BR>same button then we can use this ButtonsCombo.
    *<BR> By the way there is no button at all in <I>ButtonsCombo</I>
    public class ButtonsCombo extends JComboBox {
    //===================================================================================
    * Create ButtonsCombo with default combobox model
    public ButtonsCombo () {
    super ();
    init ();
    //===================================================================================
    * Creates a ButtonsCombo that takes it's items from an existing ComboBoxModel.
    public ButtonsCombo ( ComboBoxModel model ) {
    super ( model );
    init ();
    //===================================================================================
    * Creates a ButtonsCombo that contains the elements in the specified array.
    public ButtonsCombo ( Object [] items ) {
    super ( items );
    init ();
    //===================================================================================
    * Creates a ButtonsCombo that contains the elements in the specified Vector.
    public ButtonsCombo ( Vector items ) {
    super ( items );
    init ();
    //===================================================================================
    private void init () {
    setBorder ( BorderFactory.createBevelBorder ( BevelBorder.RAISED ) );
    setRenderer ( new ComboRenderer() );
    setUI ( new ComboUI() );
    addMouseListener ( new ComboMouseListener() );
    //===================================================================================
    * Set items for ButtonsCombo in the specified array
    public void setItems ( Object [] items ) {
    setModel ( new DefaultComboBoxModel( items ) );
    //```````````````````````````````````````````````````````````````````````````````````
    * Set items for ButtonsCombo in the specified Vector
    public void setItems ( Vector items ) {
    setModel ( new DefaultComboBoxModel( items ) );
    //```````````````````````````````````````````````````````````````````````````````````
    * Get current items in a array
    public Object [] getItemsArray () {
    ComboBoxModel model = this.getModel ();
    if ( model != null ) {
    int size = model.getSize ();
    if ( size > 0 ) {
    Object [] items = new Object[ size ];
    for ( int i = 0; i < size; i++ ) {
    items[ i ] = model.getElementAt ( i );
    return items;
    return null;
    //```````````````````````````````````````````````````````````````````````````````````
    * Get current items in a Vector
    public Vector getItemsVector () {
    ComboBoxModel model = this.getModel ();
    if ( model != null ) {
    int size = model.getSize ();
    if ( size > 0 ) {
    Vector itemsVec = new Vector();
    for ( int i = 0; i < size; i++ ) {
    itemsVec.addElement ( model.getElementAt ( i ) );
    return itemsVec;
    return null;
    //===================================================================================
    class ComboMouseListener extends MouseAdapter {
    public void mouseClicked ( MouseEvent me ) {
    ButtonsCombo.this.hidePopup ();
    public void mousePressed ( MouseEvent me ) {
    ButtonsCombo.this.hidePopup ();
    ButtonsCombo.this.setBorder ( BorderFactory.createBevelBorder ( BevelBorder.LOWERED ) );
    public void mouseReleased ( MouseEvent me ) {
    ButtonsCombo.this.hidePopup ();
    ButtonsCombo.this.setBorder ( BorderFactory.createBevelBorder ( BevelBorder.RAISED ) );
    //===================================================================================
    class ComboRenderer extends JLabel implements ListCellRenderer {
    //````````````````````````````````````````````````
    public ComboRenderer () {
    setOpaque ( true );
    //````````````````````````````````````````````````
    public Component getListCellRendererComponent ( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus ) {
    setBackground ( isSelected ? Color.cyan : Color.white );
    setForeground ( isSelected ? Color.red : Color.black );
    setText ( ( String )value );
    return this;
    //````````````````````````````````````````````````
    //===================================================================================
    // We have to use this class, otherwise we cannot stop JComboBox's popup to go down
    class ComboUI extends BasicComboBoxUI {
    public JButton createArrowButton () throws NullPointerException {
    try {
    URL url = getClass ().getResource ( "/images/comboarrow.gif" );
    JButton b = new JButton( new ImageIcon( url ) );
    b.addActionListener ( new ActionListener() {
    public void actionPerformed ( ActionEvent ae ) {
    return b;
    } catch ( NullPointerException npe ) {
    throw new NullPointerException( "/images/comboarrow.gif not found or /images folder not in classpath" );
    catch ( Exception e ) {
    e.printStackTrace ();
    return null;
    //======================================================================
    you can cutomize this according to your requirement , okie ;)

  • Increasing an array and making a drop-down menu

    Hi everyone,
    I would like to do two things:
    1.  After scaning tag IDs from an RFID reader from a serial port and individually entering them into an array (using auto-indexing), I get a n x 1 array (where n is the number of iterations, or rows).  Everytime I scan an entry in, I would like to add two things:  the temperature it was scanned at, and the time it was scanned at.  I am getting the temperature from the serial port, and am getting the time stamp using LabVIEW.  This would then make the array a n x 3 array. 
    2.  The second thing I would like to do may sound simple.  I would like to make the n x 3 array I scanned in a drop-down menu.  It need not have the temperature and time appended to it, but it needs to have the tag IDs.  I am only doing this to convserve space on the PDA screen. 
    I am attaching a sample file of what I am currently working on.  The "Read String" field represents the tag ID's i'll be reading.  It'll be in ASCII.
    I'll appreciate any help
    Thank you!
    Amal Patel
    Attachments:
    string stuff.vi ‏13 KB

    1. Simply make a 1D array of your 3 elements first (using "built array" with three inputs) inside the loop, then make it into a 2D array (e.g. at the loop boundary using autoindexing. You can also built it after the loop as in the image below.
    2. Actually, you're not getting a "n x 1" 2D array, but a simple 1D aray of size N. You could for example feed it to a "strings[]" property of a ring control.
    Message Edited by altenbach on 10-29-2006 08:35 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    StringArray.png ‏4 KB

  • Need help on creating a button with additional drop down menu

    Hi,
    I need to have a button with additional menu as we see in IE, please help me how can i do that. I want the button to be displayed normally with an additional arrow on the right side when clicked on it shows pop up menu. Please let me know if the solution has already there in the forum. I searched and couldn't get one .. :(

    Hey there buddy.
    Try this:
    http://www.koders.com/java/fid20361AB8C305DE9B9110DE90F2154FC43AA0E57C.aspx
    Jason.

  • Drop down menu buttons not working

    hello anyone..
    i have buttons on a drop down menu that wont do anything. The
    only thing the works so far is the on roll over stage. I am trying
    to make the button navigate to a certain frame on the same scene.
    The buttons are from my button1_mc.... and the first is affars_btn.
    I labeled the instances accordingly and placed the script on the
    first frame of the scene (2) which is where the menu and main info
    is on. Scene 1 is just the preloader.
    button1_mc.affars_btn.onRelease = function() {
    gotoAndStop("2", 51);
    }

    Thanks for the reply Ned. The code I'm using on the buttons is the same method I'm using for the regular buttons (i.e. not with in a movie clip).
    on (release) {
        gotoAndPlay("Scene X", 1);
    I like and appreciate the idea on keeping it with in the same timeline, but that didn't work either. This is all very strange, because as I said, the buttons that are not with in a movie clip work with that method in their action panel. And the buttons with in the movie clip work out to an url, just not a scene or frame number.
    I'm using CS4, but I'm not sure which 'Publish' settings I should have it at, and on 'Profile' it's set to 'Flash CS3 Settings (it's either that or 'Flash 5 Settings').

  • Using a drop down menu as navigation

    Good morning all!
    I have been struggling with making a drop down menu work as navigation for a while and finally need to reach out to all you brilliant people on this forum. 
    I currently have a drop down menu with three items(Nav1, Nav, 2, Nav3) corresponding to three pages(Screen1, Screen2, Screen3). When I first created the menu it seemed I could only use the OnChange option to use navigation with the menu because, when using
    the OnSelect I only get these options:
    If(Datasource!Selected!Title
    /// and ///
    If(Datasource!Selected!Value
    If I use the first option the title listed on my data source doesn't work, I get the red squiggly line. If I use the second option (Value) I have no value listed in my data source. 
    Therefore I used the OnChange option, I can get the menu to navigate to the first page, however I realized that this option chances to one single page no matter what the menu option changes to.
    Does anyone know how to make a drop down into a fully functioning navigation menu?
    The other issue I ran into was resetting the drop down to the first list item upson returning to the screen however,   ptr.chovan,
    offered this working solution:
    set a variable in screen1 property OnVisible
    UpdateContext({active: true})
    and in screen1 property OnHidden
    UpdateContext({active: false})
    Then in dropdown visual add this in Items
    If(active=true, .... your data source here ...)
    Or perhaps easiest way is instead of resetting datasource of dropdown, you can reset  dropdown default by adding this into Default property
    of dropdown
    If(active=true, "Screen1")

    If your Items in dropdown1 are
    ["Nav1", "Nav2", "Nav3"]
    Then use OnChange property of the dropdown1
    If(Dropdown1!Selected!Value="Nav1", Navigate(Screen2,""), Dropdown1!Selected!Value="Nav2", Navigate(Screen3,""), Dropdown1!Selected!Value="Nav3", Navigate(Screen4,""))
    Does the other solution of resetting dropdown helped you?

  • Drop down menu commands

    I have a drop down menu that is a movie clip that works fine,
    but i need to be able to set the buttons within the drop down menu
    to goto the main scene to a certain frame. I've tried to do this
    but cant get it to work. the buttons work if i set them to goto a
    frame within the movie clip of the drop down menu, but that would
    mean bringing everything from the main scene into that movie clip
    and also the drop down menu itself disappears.
    Is there anyway to tell a button within a drop down menu to
    goto different scenes and certain frames?
    Any help would be appreciated
    cheers

    on (release) {
    _root.my_scene.gotoAndPlay(21);
    }

  • Drop down menu changing values in a form

    i have four different sites i would like to search by
    entering the search criteria from my page. when they type their
    search into the text box and hit submit, it would open a new
    window, to the site they searched, displaying the results. i can
    accomplish this with four separate forms, however to save space i
    would like to combine them all into one form. in the end i would
    like one form with one text field, one submit button, and a drop
    down menu containing a list of the four different sites they can
    search.
    how would i do this? the drop down menu would need to change
    a few different attributes in a few different tags to get this done
    it seems. is that done with javascript? can someone help me out
    please?

    You could use the input of the drop down to dictate the
    redirect URL in your form. i have done this and it depends on what
    language PHP ASP CFM? basically look in the code for your
    MM_RedirectURL variable and add a if statement after the code that
    processes the form like this.
    PHP
    IF ($_POST['select_field'] = "site1") {
    $MM_RedirectURL = "www.example/site1/index.php";
    IF($_POST['select_field'] = "site2") {
    $MM_RedirectURL = "www.example/site2/index.php";
    redirect ("Location: " . $MM_RedirectURL . "");
    exit;
    This assumes your select field is named "select_field" and
    the values are site1, site2. But you could use whatever you want.
    Also add two more ifs or use else to make four, the logic works in
    any language (at least that i have used)

  • Can't get the spinning colorwheel to go away from the drop down menu

    I'm trying to attach a file to an email.  When I click on the attach button and the drop down menu comes down and when I get the cursor over the drop down box the color wheel comes on and won't go off.  I've restarted the computer multiple times and it still happens.  How do I clear this problem?
    quiltingT

    Useful article here on the causes of the Spinning Beach Ball and how to troubleshoot it:
    http://www.computerworld.com/s/article/9177479/Troubleshoot_the_spinning_beach_b all?taxonomyId=89&pageNumber=1
    and also this:
    http://www.thexlab.com/faqs/sbbod.html

  • Why can't we have "show cookies" menu be a button in the new drop down menu on FF29 ?

    I see the new Firefox 29 has a drop down menu in the upper right corner, with various shortcut symbols. One of them is "preferences", but I would like to make that to be have an even shorter shortcut to "show cookies", instead of having it buried in several clicks as in the old versions of FF.

    # Install Cookie Manager Button and restart Firefox if prompted.
    #* https://addons.mozilla.org/firefox/addon/cookie-manager-button/
    # Right-click (or Ctrl+click) an empty area of the tab bar and choose Customize.
    # Drag the Cookies button from the palette onto the menu panel on the right.

  • Code placement for drop down menu within an animated button

    I have a main menu comprised of 7 buttons; 6 of which are all
    straight forward with an animation. (The animation is that when the
    buttons are rolled over the button extends itself out to the right.
    On the rollout the button returns to its original state.) The 6 all
    function fine.
    The 7th menu button is the same idea but with the edition of
    a two button drop down menu that appears when the main button is
    rolled over. The roll over part is fine. My problem is moving the
    cursor off the main button to get to the sub-menu items without
    having them disappear once the cursor if off the main 7th button.
    Within the time line of the 7th button (all of the buttons
    are movie clip buttons) I put an invisible button, removing the
    sections over both the main button and the sub buttons. I have
    tried the following:
    (I should point out that the labels within the button for the
    animation are an _up, _over and _out states...the buttons animate
    out in the _over label and animate back to the original position in
    the _out label,)
    The code and where I have (unsuccessfully) tried placing it
    are as follows:
    1.) On the invisible button itself (within the main button):
    on (rollOver) {
    gotoAndPlay("_out");
    2.) On the Actions layer (within the main button):
    invisible_btn.onRollOver = function () {
    gotoAndPlay("_out");
    3.) On the Actions layer (on the main timeline...which is
    where the code for the other 6 buttons is and running as should):
    btnMusic_mc.invisible_btn.onRollOver = function () {
    btnMusic_mc.gotoAndPlay("_out");
    4.) Just a slight variation of #3 (still on the Actions layer
    of the main timeline):
    btnMusic_mc.invisible_btn.onRollOver = function () {
    brnMusic_mc.invisible_btn.gotoAndPlay("_out");
    The result for all four of these options has been the same.
    In rolling over the main button (btnMusic_mc) it does animate out
    as it should, exposing the two sub buttons. But moving the cursor
    off the btnMusic_mc neither allows me to reach the sub buttons nor
    does the btnMusic_mc animate back to its first position (as it
    should). It just snaps back into that position.
    Clearly I am missing something here. Any thoughts would be
    appreciated.

    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    No, it shouldn't and it doesn't. It should look like :
    Rates, Hours, Reservations
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    FAQ and Reserve - Training
    Here's the correct part :
    <select>
              <option value="">Rates, Hours, Reservations</option>
              <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    The <select> item was missing. And if you don't want the first line in the menu (Rates, Hours, Reservations) then don't enter it in the first place.
    BTW, it's not a dropdown menu. It's a selection list in a form.

  • Simple Drop Down Menu buttons not working

    I'm having a bit of trouble getting a button in a hoover over drop down menu to link to another scene in the .swf movie. I just doing a basic drop down menu (example here: http://www.flashkit.com/tutorials/Interactivity/Navigation/Drop_dow-Phlook-951/index.php) with a couple of buttons with in a movie clip, the movie clip being the "button" someone hoovers over. The buttons however are not going to the corrisponding scene I have them set up to. What's strange is that if I set in the buttons action panel to go to an url instead of a scene, in the .swf movie the button works when I click it...it wants to go the specificed url. Nothing happens when it's set to go to a scene. Any help would be much appreciated.

    Thanks for the reply Ned. The code I'm using on the buttons is the same method I'm using for the regular buttons (i.e. not with in a movie clip).
    on (release) {
        gotoAndPlay("Scene X", 1);
    I like and appreciate the idea on keeping it with in the same timeline, but that didn't work either. This is all very strange, because as I said, the buttons that are not with in a movie clip work with that method in their action panel. And the buttons with in the movie clip work out to an url, just not a scene or frame number.
    I'm using CS4, but I'm not sure which 'Publish' settings I should have it at, and on 'Profile' it's set to 'Flash CS3 Settings (it's either that or 'Flash 5 Settings').

  • The tools drop down menu does not have the options "button?" or whatever it is called. So, how do I get it back or better yet... where is it? 14.1.0 mac

    I am on a Mac. I am running Firefox 14.0.1 In the tools drop down menu, there is no options button. where is it or how do i restore it to the tools menu?

    Thanks for the reply, but I didn't understand it. As you can tell, I am not very good with computer jargon. So, I have to be walked through every step.
    Still, I think you were not trying to answer my Tools/option question so much as tell me how to do something else. On this, I could be incorrect.

  • Animated drop-down menu buttons won't respond onRelease

    I created a drop-down menu movie clip. Within it are multiple
    buttons which change their alpha values. I'm having an impossible
    time of getting the buttons to respond to an onRelease from the
    maintimeline.
    for instance:
    stop();
    _root.menu_mc.print_btn.onRelease = function(){
    gotoAndStop("print1");
    _root.menu_mc.illustration_btn.onRelease = function(){
    gotoAndStop("illustration1");
    I can't place any code directly on the buttons because later
    in the timeline the actionscript needs to change for the same
    buttons:
    stop();
    _root.menu_mc.print_btn.onRelease = function(){
    gotoAndStop("print2");
    _root.menu_mc.illustration_btn.onRelease = function(){
    gotoAndStop("illustration2");
    }

    i don't think so. Sorry for my ignorance, but the code you
    see is basically the only code I have in the movie.
    menu_mc is located directly on the maintime line. Inside of
    menu_mc are the buttons. If I place a button instance inside of
    menu_mc (and there are not multiple instances of it) I can use an
    onRelease and it works fine.
    I can create an invisible button, place it over the animated
    button and get the onRelease to work, however, since the buttons
    are rollovers, I loose the animation with the invisible button
    covering them up. I can't seem to target multiple instances of the
    same button in the movieclip. is there any way around this?

  • How do I get the Back Button drop down menu back?

    When surfing in a tab there used to be a drop down menu next to the forward and back buttons. It was a little tiny triangle looking arrow. This was really useful and needed. It is gone in Firefox 4 as far as I can see. I am using the default 4.0 Theme. If it is not there anymore I will have to go going back to 3.16 if the drop down menu is gone. Thanks for any help.

    ''How do I get the Back Button drop down menu back?''
    * "'''Back/forward dropmarker'''" extension<br>https://addons.mozilla.org/firefox/addon/backforward-dropmarker/
    I do prefer Right-click on tab for tab history, or hold a couple of seconds, as the drop-down marker takes up space and had been removing it myself. Although I think it should have been an option.

Maybe you are looking for

  • Problem in printing TDS certificate

    Hi SAP Guru's We are on SAP 4.6 C, By mistake we have entered the wrong challan number in "J1INBANK - Update Bank Challan Number" and to correct this one of user try to reverse the document by using the t-code "J1INREV - Reverse" but the period was c

  • AVI Issue on Windows VISTA

    Hi- I created a 3 minute cartoon at 24 fps in Flash 8 Professional. I export it as an AVI using NO compression, 32-bit alpha, 44kHz, 16 bit stereo sound. It exports fine (albeit BIG), but when I try to play it on my Windows Vista Media Player 11and Q

  • Problem in USB-IF xHCI USB Host Controller

    Dear, I hope that you will be fine. My name is Rana Imran and i am using HP ENVY Ultrabook 6-1106tx with Windows 8.1. I think i have driver problem in USB-IF xHCI USB Host Controller. I am sending you pictures of problem. Please solve this problem. T

  • Visio 2010 Stencil not displaying properly in 2013

    Greetz! I'm not sure where the Visio 2013 forum is so hopefully you all can help me out in here! I am using Visio 2013 Professional and would like to use some stencils downloaded form office.com, I unzipped 'Stencil_ModernUI_Microsoft.vss and copied

  • Slow Printing with HP 940 C

    I haven't posted here for quite a while but was wondering if anyone has ever found a way to speed up the printing. When I was using OS 9 and I hit "print", the printer responded instantaneously and was quick. Ever since I upgraded to OS 10 it has alw