How to give link to submenu of the menubar Pls help me

Dear Sir,
I am new in Flex, i want to know that how can we give to link for
child in menuBar, for new window open.
I created one parent.mxml with menus and submenu's
i created one component.mxml with different fields
So i want to link component.mxml to one of the child menu.
Thanks
Vigin Kurakar

<?xml version="1.0"?>
<!-- Simple example to demonstrate the MenuBar control. -->
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initCollections();" >
     <mx:Script>
          <![CDATA[
               import mx.collections.*;
               import mx.controls.Alert;
               import mx.events.MenuEvent;
               [Bindable]
               public var menuBarCollection:XMLListCollection;
               private var menubarXML:XMLList =
                    <>
                         <menuitem label="Menu1" data="top">
                              <menuitem label="MenuItem 1-A" data="1A"/>
                              <menuitem label="MenuItem 1-B" data="1B"/>
                         </menuitem>
                         <menuitem label="Menu2" data="top">
                              <menuitem label="MenuItem 2-A" type="check"  data="2A"/>
                              <menuitem type="separator"/>
                              <menuitem label="MenuItem 2-B" >
                                   <menuitem label="SubMenuItem 3-A" type="radio"
                                        groupName="one" data="3A"/>
                                   <menuitem label="SubMenuItem 3-B" type="radio"
                                        groupName="one" data="3B"/>
                              </menuitem>
                         </menuitem>
                    </>;
               // Event handler to initialize the MenuBar control.
               private function initCollections():void {
                    menuBarCollection = new XMLListCollection(menubarXML);
               // Event handler for the MenuBar control's itemClick event.
               private function menuHandler(event:MenuEvent):void  {
                    // Don't open the Alert for a menu bar item that
                    // opens a popup submenu.
                    /* if (event.item.@data != "top") {
                         Alert.show("Label: " + event.item.@label + "\n" +
                              "Data: " + event.item.@data, "Clicked menu item");
                    var menuItem:String = event.item.@data;
                    switch(menuItem){
                         case "1A":Alert.show("1-A")
                              break;
                         case "2A":Alert.show("2A");// herer the 2A is in a different level altogether
                              break;
                         //go on like this
          ]]>
     </mx:Script>
     <mx:Panel title="MenuBar Control Example" height="75%" width="75%"
                 paddingTop="10" paddingLeft="10">
          <mx:Label width="100%" color="blue"
                      text="Select a menu item."/>
          <mx:MenuBar labelField="@label" itemClick="menuHandler(event);"
                         dataProvider="{menuBarCollection}" />
     </mx:Panel>
</mx:Canvas>
somthing like this will work for you.
ref: http://examples.adobe.com/flex3/componentexplorer/explorer.html
If you have any trouble go to the above link and view the examples, you will get good idea on all of the components.

Similar Messages

  • How can I link .svg files in the .html code?

    How can I link .svg files in the .html code?

    I use the FileBrowser app by Stratospherix to do this.  I can watch / stream my movies on my iPhone / iPad from my hard drive connected to my Airport Extreme.  I can access all the files on that hard drive as well. 

  • How to provide Link to Column in  the Table

    Hi
    please let me know how to provide link to one column in the table.
    i have two views
    in one view i will dispaly emp id and emp dept in a table
    i have to provide link to the emp id column table
    when i click emp id column then it will fire other view and display remaining details of emp.
    so please let me know how to provide link to column in the table.
    Solution is urgent
    regards
    mmukesh

    Hi Mukesh,
       You can insert LinkToAction column in table.you can have two cattributes in Valuenode one is of type boolean and other is of type string(empno)
    you can create eventhander in that you can fire plug to seconf view where you can displays the emp details
    With Regards
    Naidu

  • HT201441 how to un link apple id without the original apple id

    how to un link apple id without the original apple id my ipod is restored and the owner that had the device past away and dont have a way to fix the ipod in order to sell it for the relative that is trying to deal with the lost I was told to sell this items to help the relative that had the lost... please let me know how to do this '.... tks

    There's no way to do it, sorry.

  • How do I remove an app from the menubar

    I deleted an app form my lanchpad when it was requesting a password as resident on the menubar and when I try to quit it at the menubar it does not close.  How do I remove this app from the menubar?

    Command-click it and drag it out. If that doesn't work, find and run an uninstaller for that application.
    (86726)

  • Regarding iCal on Mountain Lion (iOS 6.8.5):  How can I find Holiday subscription?  The O/L Help is not applicable.

    Regarding iCal on Mountain Lion (iOS 6.8.5):  How can I find Holiday subscription?  The O/L Help is not applicable.

    Check under the File menu and there should be an option to add a subscription.
    Calendar Holidays

  • HT3743 how i can fix error 1015 in my 3g , pls help,,

    how i can fix error 1015 in my 3g , pls help,,

    You can't.  Error 1015 occurs when trying to restore a jailbroken phone.
    Jailbreaking your phone voids any warranty remaining with Apple and forfeits your right to any assistance from Apple including from this forum.
    You're on your own.  From what other people have posted, it's extremely unlikely you'll ever get your phone working again.

  • Hi there , I'm downloading game from Mac App store ( The Witcher 2) and it's stuck on waiting almost at the end of the download pls help?

    Hi there , I'm downloading game from Mac App store ( The Witcher 2) and it's stuck on waiting almost at the end of the download pls help? I don't want to download it again is there any solution for this?

    Please test after taking each of the following steps that you haven't already tried. Stop when the problem is resolved. Back up all data before making any changes.
    Step 1
    Rebuild the Spotlight index. If you try to search now from the magnifying-glass icon in the top right corner of the display, there will be an indication that indexing is in progress.
    Step 2
    Unlock the Network preference pane, if necessary, by clicking the lock icon in the lower left corner and entering your password. Cllck Advanced, open the DNS tab, and change the server addresses to the following:
    8.8.8.8
    8.8.4.4
    That's Google DNS. Click OK, then Apply.

  • My iphone 3g got stuck with the apple logo and loading bar since  last night when i try to reset the iphone pls help thanks!

    My iphone 3g got stuck with the apple logo and loading bar since  last night when i try to reset the iphone pls help thanks!

    Can you reset the phone by holding the on/off switch and home button down until your phone reboots and the Apple logo again displays?

  • How to give link to SharePoint 2013 document library column to open its form?

    Hi All,
    I have Infopath document library form, now i want to give link to a specific column to its own item. How to achieve this? Thanks in advance!

    Hi Sam,
    To make the custom field to act as the Name field in the list view, I recommend to use JSLINK to achieve what you want.
    Below is the code example for the js file:
    (function () {
    var overrideCtx = {};
    overrideCtx.Templates = {};
    overrideCtx.Templates.Fields = {
    'Services': { 'View' : CustomLink }
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
    function CustomLink(ctx){
    var link = ctx.CurrentItem["FileLeafRef"];
    var value =ctx.CurrentItem["Services"]
    var html="";
    if(value!="")
    {var html= "<a href='"+link+"'>"+value+"</a>";}
    return html;
    After writing the js file, you need to upload the file to SharePoint and then refer to it in the list view web part.
    http://www.learningsharepoint.com/2012/08/03/sharepoint-2013-using-js-link-to-add-javascript-to-listviewdataview-webpart/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to give link to concrent/request seeded page with breadcrumb from apex

    Hi,
    I have given link to Concurrent request seeded page From apex for view the details of conc/req when it is submitted from Apex button. The conc/req page is opening. But I need breadcrumb to be given into the conc/req details page to go back to my Apex page. I dont know how to give this link.
    I tried with OAWebBeanConstantes=ADD_BREADCRUMB_YES and also I tried with addBreadcrumb=Y with the URL of apps conc/req details page(MONITOR Page).
    Please someone help me ,How can I give breadcrumb to the apps page to move back to Apex once details are seen.
    Thanks
    Alaka

    Hi All,
    Please someone tell me how to resolve this...?? I have already tried with the breadcrumb as I mentioned above. But from OAF to concurrent request details (Requests) page breadcrumb feature is supporting. From Apex to that page why it is not supporting. Is there any other way to do this.?
    Thanks
    Alaka

  • How to give dynamic file path in the selection  screen

    Hi All,
    How to give dynamic file path f4 functionality to user on the selection so that he can browse for the path in the presentation serve? I believe there is one fun module is there for this purpose I am not getting that
    Please help me in this regard.
    Thanks&Regards
    Mahesh

    HI,
    check this program.
    <b>report ZWA_TEST2.
    PARAMETERS: a(100) default 'PRESS F4'.
    data: filet type table of FILE_TABLE.
    data: wa type file_table.
    data: count type i.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR a.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      CHANGING
        FILE_TABLE              = filet
        RC                      = count .
    loop at filet into wa.
      a = wa-FILENAME.
    endloop.</b>
    Regards,
    HRA

  • How to automatically link a page to the next page in the next spread

    Hi everyone,
    I created a master page in which the two pages are linked( text frame on the page). When I apply the master page to the pages, on every same spread, two paged are linked, but not between spread. How do I automatically link the second page of first spread to the first page of the second spread? so all the pages will be linked in sequence. Thanks a bunch!
    Simon

    The InDesign Place command is fundamentally different from the Quark Get Content commands (as is the handling of frame content -- inifintely easier to change content type in ID). To palce content in ID you don't need to have a frame available to hold it, though you can if you like. Master frames are seldom required, or even helpful in many circumstances -- things like magazines with a rigid structure of mixed image and unbalanced column heights are one example where they ARE helpful.
    When placing text you have several options. If there is no frame, click the loaded cursor where you want the text to be and ID will draw a text frame on the fly. The top of that frame will be at the y-coordinate where you click, it will fill the column guides surrounding the point at which you click, and iut will extend downward to the bottom margin guide. If there is more text than will fit you'll see a red plus sign in the frame outport that you can click to pick up the overset.
    Still with no frame, you can click and drag to define a frame, or with an existing empty frame you can position the cursor over the frame (you'll see the icon change to include surrounding parentheses) and click to flow text into the frame and any addtional frames that may be threaded with it.
    There ae several options for threading. If you've made master frames and threaded them, hold down the Shift key when you click iniside the frame and InDesign will add pages based on the last master in the thread untill all of the text is placed. If there are no master frames, holding shift will add frames on the fly, and pages to hold them. These frames will fill the column guides from top to bottom margin guide.
    Holding the Alt (Opt) key instead of Shift puts you in semi-auto flow mode and text will be added one frame at a time (or one group of threaded frames if you click inside a thread), but will leave the place cursor loaded so you can add a new frame or click inside another existing frame. You can swith from semi-auto-to full auto at any time by changing keys, or release the key to just place text in the last frame. Holding Alt + Shift puts you into Autoflow to end of available space mode, wich will fill existing pages, but not create new ones.

  • How to give previleges to just edit the Text within the Portal ?

    Hi all,
    This is our first Portal project and we don't know how to do this.
    In our portal there are 6 or 7 tabs. The first tab (tab-1) is HOME, where there is corporate news to be posted.
    Usually we do all the content modification using ORCLADMIN user.
    Now we want to give access to one end user to edit the text for the corporate news on tab-1.
    But he must not change other part of the Portal.
    How can we do that ?
    Many thanks for your help.
    xtanto

    For order services, contracts and activities set object CRM_ORD_OP as I said.
    For Ibase use CRM_IBASE but with this one it is not possible to set authorizations only for own ibases. Maybe there is some other object for ibases.
    Also for business partner there is no such authorization object to shown only own partners. You have 2 options. To play with object B_BUPA_GRP but that means you will have to maintain group for each responsible employee. Or you implement logic in badi BADI_CRM_BP_UIU_AUTHORITY.

  • How to give design console access to the user from OIM GUI - OIM 11g R2

    Hi,
    Could you please let me know if there is any way to give Design Console access to a normal user in OIM 11g R2.
    I tried by giving the access from backend by using DB command and I was able to give the design console access to the user.
    But I need to give design console access to the user from OIM Interface.
    Please let me know how to achieve this functionality.
    Thanks

    I have already used this approach by directly modifying the user record in DB.
    I am looking if it is possible to give Design console access from OIM GUI, the way we use to give in OIM 11g R1.

Maybe you are looking for