Menu.createMenu is not working in flex 4.1.

Hi,
I have created a menu bar with menu item using flex 4. My problem is that the meubar is not clickable on left and right side. How to make it clickableon both sides? For this problem i have found a solution by clicking a button using Menu.createMenu but it is not working in flex 4.1. can anyione help me with this?
Thanks,
Karthick K.

find my code below,
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Script>
        <![CDATA[
            import mx.controls.Menu;
            import mx.events.FlexEvent;
            import mx.events.MenuEvent;
            protected var menu1:Menu;
            protected function showMenu():void
               menu1 = Menu.createMenu(null, menuItem, false);
                menu1.labelField="@label";
                menu1.iconField="@icon";
                menu1.show(0, 35);
        ]]>
    </fx:Script>
    <fx:Declarations>
        <fx:XML format="e4x" id="menuItem">
            <root>
                <menuitem label="MenuItem A">
                    <menuitem label="File" icon="topIcon">
                        <menuitem label="New"/>
                        <menuitem label="Open"/>
                        <menuitem label="Save" icon="top2Icon"/>
                        <menuitem label="Save as..."/>
                        <menuitem label="Close"/>
                        <menuitem label="Print"/>
                        <menuitem type="separator"/>
                        <menuitem label="Quit"/>
                    </menuitem>
                    <menuitem label="Edit">
                        <menuitem label="Undo"/>
                        <menuitem label="Redo"/>
                        <menuitem type="separator"/>
                        <menuitem label="Cut"/>
                        <menuitem label="Copy"/>
                        <menuitem label="Paste"/>
                    </menuitem>
                    <menuitem label="View"/>
                    <menuitem label="Document" icon="top1Icon"/>
                    <menuitem label="Tools">
                        <menuitem label="BasicToolsSubToolBar">
                            <menuitem label="SelectMenuItem"/>
                            <menuitem label="HandMenuItem"/>
                            <menuitem label="ZoominMenuItem"/>
                            <menuitem label="ZoomDragMenuItem"/>
                        </menuitem>
                        <menuitem label="AnalysisToolsItem"/>
                    </menuitem>
                    <menuitem label="Window"/>
                    <menuitem label="Help"/>
                </menuitem>
                <menuitem label="MenuItem B"/>
                <menuitem label="MenuItem C"/>
                <menuitem label="MenuItem D"/>
            </root>
        </fx:XML>
    </fx:Declarations>
    <s:Panel title="Menu Control Example" width="553" height="238">
        <s:Button x="10" y="174" label="Show Menu" click="showMenu()"/>
    </s:Panel>
</s:Application>
The above code is not working in Flash builder 4 sdk used is 4.1 especially the code snippet in red.
Thanks,
Karthick K..

Similar Messages

  • SOME FUNCTIONS BEHIND MENU/TOOLBAR ITEMS NOT WORKING

    In application the toolbar button 'new record' and 'next record' are not
    working. The associated menu items also not work.
    When copying same set of binaries to another directory with another forms
    listener then everything is ok. So the problem is not in the fmx's.
    Most menu/toolbar items do work only those two have problems.
    Any suggestions?

    The problem was probably due to a connection error.
    Nothing to do with designer or headstart.
    It is solved

  • Ipad i have load swf file but swf  is not working proper(flex 4.6) but android is fine to work how

    ipad i have load swf file but swf  is not working proper(flex 4.6) but android is fine to work how

    On the MBP, in iTunes, switch to Song view and enable the iCloud Status column by pulling down View > View options and selecting the option for "iCloud Status." Close the small window. Look for any tracks that have a status of "waiting." If you see several of them disable iTunes Match while holding down the Option key. Quit iTunes, wait a few seconds, then open it again and turn iTM back on. Let it compelete the scan. Wait until all tracks that are "waiting" have a status of either "matched" or "uploaded."
    On the iPad, turn off iTunes Match then launch the Music app and let the contents clear out. Power cycle the iPad for good measure, then re-enable the service once all the tracks in iTunes have been processed.

  • I have website that on the Home page and the home only. When opened in Chrome or Safari the last 3 menu buttons do not work.

    I have website that on the Home page and the home only. When opened in Chrome or Safari the last 3 menu buttons do not work. But work fine in Explorer and Firefox.Its weird. The site is baystatewiring.com see if you have the same problem. Does anyone have a idea?

    Code errors could explain the problem.  You're missing a closing </div> tag for container.
    [Invalid] Markup Validation of http://baystatewiring.com/index.html - W3C Markup Validator
    Try changing your link CSS from display: inline to display: inline-block.
    Nancy O.

  • What to do if the menu key is not working?

    a month after i got the phone my menu key is not working properly. sometimes it works and sometimes it dont. i already tried restoring my phone and all the the possible troubleshooting but still the same. what do i have to do?. my phone still under warranty and the company i purchased the phone said they are sending an email from apple yet ive been waiting for a month already and still there is no reply

    Go to settings>icloud>storage and back up>back up
    after that preform a restore by going to
    general>reset>erase all content and settings
    this will delete everything except the enabled stuff on icloud.
    You can view whats enabled by going to icloud in settings.

  • Command-Z keyboard menu shortcut is not working

    Hi
    Command-Z keyboard menu shortcut is not working in my profile i.e.,my login. But able to execute the same keyboard shortcut in other profile. ALl the other menu keyboard shortcuts are working fine. Have tried deleting Universal Access, HotKeys,Finder Preference plist,. from ~/Library/Preference/ folder. But of no use. This shortcut is not working for any of the app.
    Thnks

    ok will try that and will let you know.. But the undo keyboard shortcut works well in other user profile.

  • My 'Menu' button will not work. How can I fix this?

    The menu button will not work.
    Is there anything I can do myself to fix this problem?
    It works occasionally, but mostly does not work.
    Thanks

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • The menu button is not working on my iPod Nano

    I cannot get back from anywhere. Once I have seleceted a track to play, the menu button does not work so that I cannot get back to all music or to choose other options such as radio. It does not make a click sound. It works occaisionally (once a week). Any ideas? Anyone had this problem before?

    Hey Nick Norway,
    Thanks for the question. Let’s see if we can isolate your issue further to determine if it is hardware related. Have you attempted to reset your iPod? If not, definitely give that a go:
    How to reset iPod
    http://support.apple.com/kb/HT1320
    If you are unable to reset your iPod, please attempt to restore it with iTunes.
    Restoring iPod to factory settings
    http://support.apple.com/kb/ht1339
    If your issue persists after the restore, your iPod may need to be serviced. The following link should help you get started with the process. Included, you will find information on topics such as warranty, service pricing, and express replacement service.
    Apple - Support - Service Answer Center
    http://www.apple.com/support/ipod/service/faq/
    Thanks,
    Matt M.

  • Since upgrade to v29, pinned tabs don't appear and sometimes all tabs don't appear and open menu button does not work

    My pinned tabs don't appear at any start and at some starts, I don't see the bookmarks toolbar (I can restore that by removing it from view-toolbars and then reselecting it). when this happens, FF also does not show any tabs and the Menu button does not work.
    I have tried various suggestions found on here like deleting the sessionstore.js and re-installing FF, also tried disabling hardware acceleration in safe mode and still have the same problems.
    Am reluctant to reset FF in case I lose my favourites and Bookmarks, is there anything else I can try?

    Firefox may not have closed properly.<br />
    You can try to update to Firefox 29.0.1 to be released tomorrow (Friday) to see if that helps with this issue.
    See also:
    *"Hang at exit": http://kb.mozillazine.org/Firefox_hangs
    *"Firefox hangs when you quit it": https://support.mozilla.org/kb/Firefox+hangs

  • Top Navigation Bar drop down menu's do not work

    Top Navigation Bar drop down menu's do not work. It is only happening on a couple of my site collections and is affecting on the main page of those collections. There is only one web part on the main page, it is the Picture Library Slideshow web part. When
    I remove that web part, the menu's come back and work with no problem. I re-add the web part and the menu's stop working. Not finding any error's in the server logs, there are no visual error's thrown.  Any advice on what might be happening? I've checked
    the Java update on our computers and it has the latest version.  Open to any advice at this point.
    DA
    ~~~~~~~~~ DAnderson

    Hi,
    How does the Top Navigation Bar dropdown menu issue look like?
    Could you please provide a screenshot about the issue, also may detecte the problematic elements by using IE browser developer tool (keyboard F12)?
    Please also check if it is related IE compatibility issue.
    Thanks
    Daniel Yang
    TechNet Community Support

  • Search menu function is not working

    Hi
    Search menu function is not working in one of my HRMS 9.1 (PT: 8.52.09 application.
    Verity installed and executed the build registry search index aswell.
    Please let me know if I miss something on configuring the search menu function.
    Thanks
    Soundappan

    Personally I did not have to make any psappsrv.cfg changes for this particular 9.1 env or any other changes that I can remember. Is PS_HOME = PS_CFG_HOME though?
    If you didn't specifically set PS_CFG_HOME to PS_HOME it defaults to something like $HOME/psft and the files would need to be there instead.
    If you run psadmin what's it show as the Config Home?
    If I unset PS_CFG_HOME i get
    PSADMIN -- Tools Release: 8.52.07
    Copyright (c) 1996, 2011, Oracle. All rights reserved.
    PeopleSoft Server Administration
      Config Home:  /home/psoft/psft/pt/8.52And the files would need to be there rather than $PS_HOME/data/....
    Now you could override that in your psappsrv.cfg file with
    EMPLOYEE=PS_HOME/data/search PS_HOME I dont think can be used here as a variable... it needs to be the full path. the location here must lead directly to the EMPLOYEE directory
    In 8.52 there are also some alternatives to this older style above.
    See this peoplebook for 8.52 http://docs.oracle.com/cd/E28394_01/pt852pbh1/eng/psbooks/tsvt/book.htm?File=tsvt/htm/tsvt10.htm%23g037ee99c9453fb39_ef90c_10c791ddc07_102b for details.
    In the past I've used shares or nfs mounts to have the process scheduler write directly to the appserver. But you could check out the new search server option too.
    Let me know.

  • Tabbing is not working properly / Flex Mobile 4.6

    Hello,
    I've been working on a mobile app in Flex 4.6 and I've noticed that tabbing between fields is not working properly - maybe someone else has had the same experience and has a fix?
    I have 4 TextInput fields, which now all have tabEnabled set to "true" and tabIndex set accordingly, however, I am unable to tab netween the fields.
    More specifically, when I run the app with a destop run configuration, any time I hit the "TAB" button on the keyboard the first field is focused on. So, if the cursor is in field 3 & I hit TAB, the focus is now in field 1.
    On the mobile device (Samsung Galaxy S), there is no tabbing at all, no matter which field I am in. The soft keyboard does detect the last field though, and the "Next" button on the keyboard will change to "Done".
    I've tried putting the TextInput fields withing a SkinnableContainer (as mentioned here: http://forums.adobe.com/message/2418694#2418694), but no change.
    I also found a bug report on something similar, though it was closed becuase it was opened in the AIR bug base instead of the flex bug base. (https://bugbase.adobe.com/index.cfm?event=bug&id=3064944)
    Here's the code for my "registration" view without any functions or function calls.
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        title="Create Account">
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <s:Group left="10" right="10" top="10" bottom="10">
                        <s:layout>
                                  <s:VerticalLayout/>
                        </s:layout>
                        <s:TextInput id="email" prompt="Email" tabEnabled="true" tabIndex="1"/>
                        <s:TextInput id="un" prompt="Username" tabEnabled="true" tabIndex="2"/>
                        <s:TextInput id="pw" displayAsPassword="true" prompt="Password" tabEnabled="true" tabIndex="3"/>
                        <s:TextInput id="pwc" displayAsPassword="true" prompt="Confirm Password" tabEnabled="true" tabIndex="4"/>
                        <s:Button id="button" width="100%" label="Sign Up"/>
                        <s:Group width="100%">
                                  <s:layout>
                                            <s:VerticalLayout horizontalAlign="center"/>
                                  </s:layout>
                                  <s:BusyIndicator id="bi_reg" visible="false"/>
                                  <s:Label id="msg_reg" width="100%" text="Label" textAlign="center" visible="false"/>
                        </s:Group>
              </s:Group>
    </s:View>

    Thanks for the response. I am using spark TextInput components as you can see in the code above. I've used these conrtols in other apps in FB 4.5 and have had no problems so it seems like something may be different in 4.6, or it's a bug.

  • Player Settings Menu Intermittently Does Not Work / Settings Manager Crashes - Firefox 6.0/Windows 7

    1)  I occasionally have a problematic issue with the Flash Player Settings menu, primarily with SocialVibe (media.socialvi.be) applications associated with FarmVille, activities such as video quizzes and interactive surveys.  Sometimes after loading these applications, the Player Settings menu opens requesting permission for local storage space changes, however I am unable to left-click on anything at all within the Player Settings menu: Allow/Deny the requested change, manual storage setting adjustment, switching tabs within the menu, or (particularly frustrating) to close the menu.  Usually if the Player Settings menu requests a local storage change, I can select my preference and it works properly.
    When the Player Settings menu opens and is non-functional, the application will still run in the background, seemingly without issue, but is inaccessible because the Player Settings menu is active.  I have tried closing/refreshing the application, but the menu still remains unusable.  Many times there are several activities offered one right after another.  When one is completed, the link refreshes and a new application becomes available.  Each application is unique and only available for a very limited time.  The inability to make changes or close the Player Settings menu effectively blocks these activities from being completed.  Since I cannot complete the activity, the link for itwill not refresh, so I am stuck with an application where the Player Settings menu will not function properly and I have no opportunities for new activities.
    Interestingly, when the Player Settings menu is oblivious to left-clicking with the mouse, I am able to select the options of Allow/Deny/Close by using the tab key on the keyboard to highlight the appropriate button, however pressing enter does nothing.  I can also right-click with the mouse and access the menu for Settings/Global Settings/About, which works properly.  In this menu, when I choose Settings, it takes me to the Local Storage tab of the Player Settings menu, however I am still unable to make any changes, switch tabs or close the menu.  When I choose About, it will load the Flash Player webpage and it does tell me that I have the most current version (10,3,183,5) successfully installed.  When I choose Global Settings, it will open the Flash Player Settings Manager, which I am able to navigate and modify (mostly, related issue below).
    2)  I also have an issue with the Flash Player Settings Manager.  When I try to open the Local Storage Settings by Site, the Settings Manager will usually crash.  It crashes whether I open the Settings Manager from the Player Settings right-click menu or through the Windows Control Panel.  I had originally assumed that there must be so many websites listed that want storage permissions that it takes a while to load, but until this evening it had never loaded successfully and would go unresponsive almost immediately.  This evening I attempted to access the Local Storage Settings by Site many times, crashing and restarting the Settings Manager, until it finally loaded.
    In the Local Storage Settings by Site, media.socialvi.be (SocialVibe) is shown as having 0kb Storage Used and Ask Me under Storage Settings.  Because every application from SocialVibe is different, I want Flash to ask me each time it wants to change the storage settings, so I do not want to set its permission to Allow.  From reading through the Flash troubleshooting webpages, I understand that choosing Block may cause the applications to not run correctly, and I do want them to run properly.  The local storage request from media.socialvi.be was 5kb as shown in the Player Settings menu (that wasn't working), so if the Player Settings menu is not functioning and I must allow some level of storage, is there a way that I can specify how much to allow using the Settings Manager without setting the permission to Allow?  I do not feel that websites should be able to store as much information as they see fit on my machine, and as I want to keep as much advertisement information, tracking, cookies, etc. off my computer as possible, setting the permission to Allow seems to be a risky permission.
    System Specs:
    162 GB Free harddrive space (220 GB Total)
    Pentium(R) Dual-Core CPU     [email protected] GHz
    Windows 7
    Mozilla Firefox 6.0
    DSL Cable Internet Connection
    Thank you

    Try http://forums.adobe.com/thread/892474

  • Customizing a VScrollBar is not working in Flex sdk 4.6?

    Hi,
    I have updated my Flex sdk from 4.5 to 4.6 in my application. I have faced a strange issue this sdk 4.6.
    In my application I have designed a Custom VScrollbar for customizing the vertical scroll speed of a mouse wheel to smooth-en the scrolling . This was working fine when using Flex sdk 4.5.
    Since I have updated to Flex sdk 4.6, the vertical scroll bar in not visible in UI. Whereas it was visible and working fine using Flex sdk 4.5.
    How to make it work in Flex sdk 4.6?
    The usage of the Customized Scroller is given below.
    In Main Page:
    <components:CustomScroller id="homeUIScroller"
                                   width="100%" height="100%">
            <s:VGroup >
            </s:VGroup>
    </components:CustomScroller>
    CustomScroller.as:
    public class CustomScroller extends Scroller
            public function CustomScroller()
                super();
                this.verticalScrollBar = new CustomVScrollBar();
    CustomVScrollBar.as
        import flash.events.MouseEvent;
        import mx.core.mx_internal;
        import mx.events.FlexEvent;
        import spark.components.VScrollBar;
        import spark.core.IViewport;
        use namespace mx_internal;
        public class CustomVScrollBar extends VScrollBar
            private var distance:Number = 78;    // default scroll mover value
             *  Override mouseWheelHandler to scroll by a fixed amount
             *  See superclass for example of how this normally works
            override mx_internal function mouseWheelHandler(event:MouseEvent):void
                const vp:IViewport = viewport;
                if (event.isDefaultPrevented() || !vp || !vp.visible)
                    return;
                var delta:Number = event.delta;
                var direction:Number = 0;
                if (delta < 0){
                    direction = 1;
                } else if (delta == 0){
                    direction = 0;
                } else {
                    direction = -1;
                if(direction == -1 && vp.verticalScrollPosition <= 0)
                    return;
                if(direction == 1 && (vp.verticalScrollPosition + distance) > maximum)
                    return;
                vp.verticalScrollPosition += distance * direction;
                event.preventDefault();
    Any help would be appreciated.
    Thanks In advance.

    Thanks for the response. I am using spark TextInput components as you can see in the code above. I've used these conrtols in other apps in FB 4.5 and have had no problems so it seems like something may be different in 4.6, or it's a bug.

  • Drop down menu's are not working on my new version of photoshop cc?

    How do I make all tools available please, none of the drop down menu's are working on my new photoshop cc?
    Could someone tell me how to make tools like the polygonal lasso tool work please. Normally they show up when you click on the small triangle next to the main tool to select the other simillar tools...
    Thank you

    You get to the polygonal lasso tool by click and hold a second or two on the lasso tool, this will bring up the flyout menu. If that does not work then right clicking should.

Maybe you are looking for

  • Help needed on startup. My computer will not boot from the CD drive!!!

    Problem with iMac G3 333, the Message on the screen states: "The System Software on the starup disk only functions on the media, not if copied to another drive." Like a fool, I copied the system folder from the original system software 9.2.2 on to th

  • Problem with linker when compile with Mingw

    The error shows as: Compiler: Default compiler Building Makefile: "D:\code\c++\JVM\Makefile.win" Executing make... make.exe -f "D:\code\c++\JVM\Makefile.win" all gcc.exe main.o -o "java_VM.exe" -L"C:/Dev-Cpp/lib" -L"C:/Program Files/Java/jre1.5.0_07/

  • IPhone / in car speaker phone

    I own a iSimple kit that is installed in my vehicle and this allows me to listen to both XM radio and Pandora radio through my factory speakers. The question that I have is: Is there an app currently available or is there one in development that will

  • SQL Loader: ignore data field

    Hi, in a SQL Loader control file, how do you specify that you do not wish to load a particular field? E.g. if I wanted to ignore the second field in the data file and load the first and third fields into a table, how would I modify the control file b

  • Cannot ingest .MTS files from Canon Vixia HF S200

    I have an iMac, OS 10.6.8, Intel Core 2 Duo processor.  I'm using FCE 4.0.1 and MPEG Streamclip 1.9.2.  My camera's parameters are:  video compression MPEG-4 AVC/H.264; 1080/60i frame rate; FXP (17Mbps) mode. With the camera powered and plugged in (U