Array for catagorical menu

Where can I get a tutorial on how to create a catagorial menu
with a built in array?
I want to create the structure below using actionscript
without XML. A nested loop thing?
Books
red books
blue books
Cars
red cars
blue cars
thanks,
yogi

check flashkit.com for a tutorial about arrays or maybe
learnflash.com

Similar Messages

  • JSTL + Javascript array for dhtml menu???  any ideas

    Hi,
    I am using the Tigra menu within creator. I have this working fine, but I need to generate a dynamic menu list based on a session bean string array .
    The javascript variable I use in the jsp file is:
    var MENU_ITEMS = [
    ['Humanities', null],
    ['Arts',null],
    ['Scienece',null],
    ['Sports',null],
    ['Boozing',null],
    ['Fornicating',null],
    How can I use a session bean array variable to recreate this?
    I assume using JSTL would be an approach?
    Has anybody got any code that has done this type of thing before?
    Regards,
    LOTI

    Launch regedit.exe, navigate to the key mentioned in the warning and manually edit it to point to the correct DW install location
    Mylenium

  • Bug or Feature? Array Custom Contextual Menu Destroys "Delete" and "Insert" Element!

    Step to Reproduce:
    - Create an Array (doesn't matter of what type).
    - Ctrl-M (to switch to Run Mode)
    - Notice that:
           - when you Right-Click on the Array borders, you have access to an "Empty Array" menu item among other things
           - when you Right-Click in an Array element, you have access to an "Insert Element Before" and a "Delete Element" menu item among other things
    - Now switch back to Edit Mode and modify the contextual menu in the following way:
            - Advanced>>Run-Time Shortcut Menu>>Edit...
            - Edit>>Copy Entire Menu
            - Switch to "Custom" menu (instead of "Default"): the menu disappears and is replaced by a single ??? item
            - Edit>>Paste: The default menu reappears with the ??? on top
            - Create you favorite custom menu item by editing the ??? item (say: Do Nothing)
    - Save the menu with the control and switch to Run Mode (Ctrl-M).
    - Now try the first 3 steps above: wherever you right-click, you have access to the Custom Menu, but the Array Element contextual menu is GONE.
    In other words, you cannot (it seems) define a custom contextual menu for an array without destroying the default contextual menu for its elements.
    Therefore, if you want to preserve the ability to Insert and Delete Elements in an array, you have to add these two items to the Array contextual menu and juggle with the position of the right-click to figure out whether or not to display them...

    Well, I created in LabVIEW 2012 such a control and added part of the default menu in the way you described with copy-paste as a submenu to an Edit entry in my custom menu and it did not disappear:
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Attaching binary arrays to a menu ring

    I have been playing around with the menu rings and can't seem to get it to do the function that I want.  I am looking to making a pull-down menu for some user options for different resoultion modes for an intrument.  So for example one option will be "2 eV" and with this option on I need to send 011 to a instrument.  Should I store it as a binary string or array, and how can I do that?
    Thanks in advance

    Do you always need to send a number to the instrument? If so do it this way:
    For the menu ring go to its Properties >> Edit Items. In this dialog you can enter the displayed text and the assosiated number. So yo can pair 2eV with 11. The terminal will give you the number. From your example I assume that the instrument will see the number as text with three digits. Use the "Format into string" function. Set the format string to "%03d" which will give a number with three digits padded with 0 to the left. Inthe example choosing 2eV will give 11 from the terminal and "011" as result from the Format function.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Problem with .css for Spry menu

    Hi,
    I am having a problem with the Spry menu I have created and edited. All looks great in the Design view of Photoshop however under the Live view or opened using a browser the menu reverts to a list of hyperlinks!
    I have checked the .css link but when using Firefox CSS editor the CSS file for the menu is simply blank?
    Any suggestions would be great!
    Thanks,
    Ozan

    Your SpryMenuBarHorizontal.css needs to be within your SpryAssets folder, which is where it would have been put automatically when you inserted the SpryMenuBar. You can move it back in there using the Files Panel.
    Here is what the file structure needs to look like:
    SpryAssets
    SpryMenuBar.js
    SpryMenuBarHorizontal.css
    cssstyletemplate.css
    index.html (or whatever the name of your page is)
    Hierarchally, the top level of your root folder will show folders for SpryAssets and css and the html pages will be on the same level.
    The Spry assets themselves will be down a level IN the SpryAssets folder, as the styletemplate.css file will be down a level IN the css folder.
    In the head of the document, you will have
         <link rel="stylesheet" type="text/css" href="css/styletemplate.css" />
         <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"> </script>
         <link rel="stylesheet" type="text/css" href="SpryAssets/SpryMenuBarHorizontal.css" />
    At the end, remove the slash before Spry inside the imgDown and imgRight sections:
         <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    Compare these with your files and file structure and correct any small typos, and they should be correctly linked.
    Beth

  • How can I use a 1 double array for this

    I would like to use one double array where I am using 2 single arrays, can this be done?
    thanks
    import java.text.NumberFormat;
    import java.util.Locale;
    class Mortgage3
              public static void main(String[]argv)
              //Variables
              //allows for currency format
              NumberFormat formatter = NumberFormat.getCurrencyInstance(Locale.US);
              double prin;                              
              double month_payments;
              double monthlyinterest;   
                    //standard integer
              int months;     
                    //array for the different interest rates
                    double[] interest = {0.0535,0.055,0.0575};
              //array for the different terms
                    int[] term = {7, 15, 30};
                    for (int i = 0; i < 3; i++)
              //values for the variables
              prin = 200000;        //principle amount of the mortgage
                    monthlyinterest = (interest[i] / 12);          //monthly interest
              months = (term[i] * 12);               //total amount of months in the 30 yr term
              //monthly payment calculation
              month_payments = (prin * monthlyinterest) / (1-Math.pow(1 + monthlyinterest, - months));           
              System.out.println("\n\n\t For a loan amount of " + formatter.format(prin));
              System.out.println("\t With an annual interest rate of " +interest[i] * 100+ "%,");
              System.out.println("\t your payments will be " +formatter.format(month_payments)+ " per month");
                    System.out.println("\t for a term of "+term[i]+ " years or " +months+" months.");
    }

    I would like to use one double array where I am using 2 single arrays, can this be done?It can, but why not write a Rate class or other data structure more suited to the purpose?

  • In XML view, how to set sap.ui.core.CSSSize array for property "widths" of MatrixLayout Control?

    As SAPUI5 prefer XML views, I'm rewriting JS view into XML views.
    When I translate the statements below, I can not set sap.ui.core.CSSSize array for property "widths" of Control MatrixLayout.
    JS version:
    var oLayout = new sap.ui.commons.layout.MatrixLayout({
        id : 'matrix3'
        columns : 3,
        width : '600px',
        widths : ['100px', '200px', '300px']
    XML version:
    <l:MatrixLayout
        id="matrix3"
        columns="3"
        width="600px"
        widths="['100px', '200px', '300px']">
    <l:MatrixLayout>
    The error says: Uncaught Error: "[100px, 200px, 300px]" is of type object, expected sap.ui.core.CSSSize[] for property "widths" of Element sap.ui.commons.layout.MatrixLayout.
    Same problem with property `backgroundDesign` of MatrixLayoutCell, I can only use a workaround to use String "Fill1" not the Class "sap.ui.commons.layout.BackgroundDesign.Fill1".
    When we meet a property which need a Class object as value, we can not set it in String Format for XML views. That's a pity or I did not find the right way to set NON-String values as property for XML Controls.

    Hi,
    any settings that are not possible in the XML, need to be set in the controller instead.
    Using the string value of an enum is fine, though.
    Regards
    Andreas

  • Do I need a fast system drive if i also have a RAID 0 array for media?

    If my video and media files are all on a Fast RAID array then do i need a fast system drive?
    Im building a system. The only thing on my system drive will be programs. And I will have a RAID array for my video and PSD files - but my System drive is an older UltraDMA EIDE133 250g Maxtor. This system drive is testing at 51mb/s Read, and 26mb/s write. (According to Blackmagic disk speed check program)
    A New SATA drive tests at 53 write and 43 read. So should i bother upgrading my system drive to a RAPTOR 150 or stick with the older EIDE drive? Main Programs i use are Adobe After effects, premiere pro, Photoshop for uncompressed editing with blackmagic intensity.
    Specs:
    MB: Tyan K8WE
    AMD Opteron 270 (dual)
    4GB RAM.
    Nvidia Quadro FX 560
    Apple cinema Display 30'
    4x500gb RAID array (2TB total) on Nvidia SATA motherboard controler.

    Jeron,
    Yes, you are probably.
    - Its i either spend $900 dollars or $200.
    The best possible Rig is this; I spend $500 dollars on a dedicated PCI-X RAID controller card. I buy a Raptor 150g system drive $200. And then buying another 3 drives to add to the RAID array of 2 disks i already have = $300.
    Or option 2: My motherboard (K8WE) has 4 SATA-II ports. So I could set up a 4 disk raid with what i have right now and be achieving 210+ mb/s read and write. My system drive would be off the IDE/133 channel. Then i would only have to spend $200 on 2 disks.
    I have been trying to decipher if it is logical to spend that much more money - when it is possible i will only achieve maybe 50 more Megabytes a second. - and have windows and programs start faster.
    A part of me says - "any time i try to save money on something it comes with calamity and disaster". vs. a part of me that says - "you could get more bang for your buck".

  • My movie has clips that have some extracted audio that I would like to use for the menu music in iDVD 11. Does anyone know how to do this? Copy and paste does not seem to work.

    My iMovie 11 movie has clips that have some extracted audio that I would like to use for the menu music in iDVD 11. Does anyone know how to do this? Copy and paste does not seem to work.

    I would use Quicktime Pro.
    See: QuickTime Pro: How to Extract or Disable Tracks at http://docs.info.apple.com/article.html?artnum=42596 and QuickTime Player 7 Help - Extracting, Adding, and Moving Tracks at http://docs.info.apple.com/article.html?path=QuickTime%20Player/7/en/c3qt6.html
    To get Quicktime 7.6.6 for Snow Leopard see: QuickTime Player 7.6.6 for Mac OS X v10.6.3 at http://support.apple.com/kb/DL923  (Quicktime 7.6.6 is the latest version.)
    To upgrade to Quicktime Pro see: QuickTime Player 7 Help - Getting QuickTime Pro at http://docs.info.apple.com/article.html?path=QuickTime%20Player/7/en/c2qt.html

  • How to add event handling for a menu?

    hi,
    I have created a menu and few mneu items.
    for eachmenu itme , i did event handling and it is workign fine.
    it was like this
    menuItem = new JMenuItem("Exit",KeyEvent.VK_X);
    menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.ALT_MASK));
    menuItem.addActionListener(this);
    menu.add(menuItem);
         public void actionPerformed(ActionEvent e)
    JMenuItem source = (JMenuItem)(e.getSource());
    String s = "Action event detected. Event source: " + source.getText();
    System.out.println(s);     
    public void itemStateChanged(ItemEvent e)
    JMenuItem source = (JMenuItem)(e.getSource());
    String s = "Item event detected. Event source: " + source.getText();
    System.out.println(s);
    now int he second menu i don't have any menu item and i want to do the event handling for the menu itself. any ideas how to do it. following is the code for the menu
    //Build the second menu.
    menu2 = new JMenu("Options");
    menu2.setMnemonic(KeyEvent.VK_O);
    menuBar.add(menu2);
    menu2.addActionListener(this);     //this does nto work

    You were on the right track. However, selecting a menu is different from selecting a menu item. MenuItem chucks an ActionEvent and Menu will send an ItemEvent.
    If you pile all action output to one actionPerformed method then be careful of your assumptions on what the source type will be. If by any chance the Menu has sent an ActinoEvent then your code will have caused a ClassCastException.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MenuTest implements ActionListener, ItemListener {
        JMenuItem menuItem;
        JMenu menu1, menu2;
        JMenuBar menubar;
        JFrame frame;
        public MenuTest() {
            frame = new JFrame("MenuTest");
            frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
            menubar = new JMenuBar();
            frame.setJMenuBar(menubar);
            menu1 = new JMenu("File");
            menu1.setMnemonic(KeyEvent.VK_F);
            menuItem = new JMenuItem("Exit",KeyEvent.VK_X);
            menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.ALT_MASK));
            menuItem.addActionListener(this);
            menu1.addItemListener(this);
            menu1.add(menuItem);
            menubar.add(menu1);
            //Build the second menu.
            menu2 = new JMenu("Options");
            menu2.setMnemonic(KeyEvent.VK_O);
            menu2.addActionListener(this); //this does not work
            menu2.addItemListener(this); // use this instead
            menubar.add(menu2);
            JPanel panel = new JPanel();
            panel.setPreferredSize(new Dimension(100,100));
            frame.getContentPane().add(panel);
            frame.pack();
            frame.show();
        public void actionPerformed(ActionEvent e)
            String s = "Action event detected. Event source: " + e.getSource();
            System.out.println(s);
        public void itemStateChanged(ItemEvent e)
            String s = "Item event detected. Event source: " + e.getSource();
            System.out.println(s);
        public static void main(String[] args) {
            new MenuTest();
    }

  • Deleted CSS for Horizontal Menu Bar. Help!

    I deleted the css for my spry horizontal menu bar and now when I try to upload it into a new page it is distored.  I added back the css rules for the menu bar and it helped but I cannot get the menu bar to line up horizontally like it was originally.  The bars are vertically staggered across the page.  Can anyone help me with the css settings to get the menu bar back to normal?
    Thank you
    Teresa

    Hello Teresa,
    we should not resign ourselves. I for my part, I'm very "happy" with my DW,  particularly you/we find here many unselfish helpers! What concerns your "way to build website an easier way" I'll propose DW itself (see screenshot of my German DW):
    or many of interesting templates (Google is your friend) and here my favorite are these of Nancy O.:
    http://alt-web.com/Free-CSS-Templates.shtml.
    And I want to reoeat my hints from above:
    If you have a budget to work with, look at PVII's Pop-Menu Magic3.
    http://www.projectseven.com/products/menusystems/pmm3/index.htm
    jQuery Superfish (free): http://users.tpg.com.au/j_birch/plugins/superfish/ aso.
    Good luck!
    Hans-Günter
    P.S.
    And whether you use DW or other programs, sooner or later you have to become familiar with CSS and html aso.

  • What font is used for the menu of Illustrator CS5?

    What font is used for the menu of Illustrator CS5?
    I know how to change the default font, which is used to input characters.
    But, I do not know how to check the font used in the menu.
    Is it the font that is described in the following files?
    C:\Users\[UserName]\AppData\Roaming\Adobe\Adobe Illustrator CS5 Settings\ja_JP\AIPrefs
    If you know, please tell me how to check the configuration file and how to change the font that is used in the menu.

    If your using windows xp and applied the 12.02 update, then this is a known bug in
    the update effecting xp users and adobe is working on a fix.
    see this thread
    http://forums.adobe.com/thread/762392?tstart=30
    MTSTUNER

  • To set the short cut key for the menu when using CommandDesign pattern

    Hi All
    I have a menu File which has two menu items Load and save.
    Here for implementing the actionperformed iam using the command design pattern.
    Now iam not able to set the short cut key for the menu item......
    Please help me..............
    Thanks
    Arch

    The Java Tutorials: [How to Use Menus|http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html]
    db

  • Best photoshop setting for DVD Menu

    Does anyone know what the best photoshop preset is for the Menu?
    Currently I have a 1280x720 file, and it pixilates slightly when added to the SD Menu. I want to suggest a better resolution to the client, and don't want to waste time testing it if someone already has the answer.
    Thanks!

    ehh sorry to be redundant, found the answer in someone else's thread.

  • Adding A Separate Background Image For Each Menu Item

    I asked this in the Spry forum, and not sure I understand the answer. Plus, I should have been more specific in asking how to do it, as I'm still pretty new to this stuff. Nothing I'd found indicated it could be done, or how.
    Org question -
    I know you can apply a background image to the menu bar items, but is it possible to add a background image for each individual item? What I'm basically trying to keep are the effects (bevel/emboss, etc.,) that I attached to the text, when I created it in PS CS4.
    Answer -
    Yes you can. The widget is just normal plain html markup so you can just add other classNames or id attributes to the elements. And style the elements through those classes/ids.
    Does this mean I'd have to write a new rule for each menu item? What?
    Thank you.

    Did an Adobe Tutorial for creating/entering a Spry Menu Bar. This is the HTML, after I took out the submenus.
    <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="news.html">Features</a></li>
          <li><a href="news.html">News</a></li>
          <li><a href="news.html">Fashion</a></li>
          <li><a href="news.html">Lifestyle</a></li>
          <li><a href="news.html">Calendar</a></li>
        </ul>
    This is from the SpryMenuBarHorizontal.css (It seems like I need to make changes in the Design Info section of this code. But nothing I've tried has worked):
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    cursor: default;
    width: auto;
    text-transform: uppercase;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
    z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    width: 7em;
    float: left;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    z-index: 1020;
    cursor: default;
    width: 8.2em;
    position: absolute;
    left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
    width: 8.2em;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
    position: absolute;
    margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
    left: auto;
    top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
    border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
    display: block;
    cursor: pointer;
    background-color: #EEE;
    color: #333;
    text-decoration: none;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
    background-color: #33C;
    color: #FFF;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
    background-color: #33C;
    color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
    background-image: url(SpryMenuBarDown.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
    background-image: url(SpryMenuBarRight.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
    background-image: url(SpryMenuBarDownHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
    background-image: url(SpryMenuBarRightHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
    position: absolute;
    z-index: 1010;
    filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarHorizontal li.MenuBarItemIE
    display: inline;
    f\loat: left;
    background: #FFF;

Maybe you are looking for

  • Import PO - Currency Issue

    Hi Friends, my business process like one of my vendor . i need few materials like MAT1,MAT2,MAT3. but each item different currency like MAT1 - EUR, MAT2- USD, MAT3 - GBP. But final payment in INR. i want to creat Single purchase order for this 3 mate

  • My Objects on SLFN support ticket

    Please could someone provide any information on the function: My Objects > Add to My Objects and Subscribe to/Cancel Object. This appears on the SLFN support ticket. Thanks

  • Help plzz!

    My pentool in free hand mx isn't working. It is n't giving the curve after a drag although i have checked that it is not benzegon. So kindly let me know, do i have to install again free hand or something? thanks

  • List of Services

    Hi, I'm currently working on a research project including ESA. I was wondering if there is a list of existing services - in the best case structured for several industries/branches - available? Even though this question had been posted several times

  • IPhoto on a new iMac

    I just bought a new iMac and went to open iPhoto for the first time and it says my photos are unreadable, but there aren't any yet.  Not sure how to get iPhoto to work.