RangeError inside mx.controls::Menu/show()

This bug seems to happen only with submenus, when the mouse
move quickly on another menu.
the Hide/Show part of the MenuBar seems to be buggy.
How to reproduce it ? this is not very clear. see in the end
of this POST.
RangeError: Error #2006: L'index indiqué sort des
limites.
at flash.display::DisplayObjectContainer/addChildAt()
at mx.managers::SystemManager/
http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()[C:\dev\GMC\sdk\framew orks\mx\managers\SystemManager.as:1578
at
mx.managers::SystemManager/addChild()[C:\dev\GMC\sdk\frameworks\mx\managers\SystemManager .as:1190]
at
mx.managers::PopUpManager$/addPopUp()[C:\dev\GMC\sdk\frameworks\mx\managers\PopUpManager. as:221]
at
mx.controls::Menu/show()[C:\dev\GMC\sdk\frameworks\mx\controls\Menu.as:1027]
at
mx.controls::MenuBar/mx.controls:MenuBar::showMenu()[C:\dev\GMC\sdk\frameworks\mx\control s\MenuBar.as:1350]
at
mx.controls::MenuBar/mx.controls:MenuBar::mouseOverHandler()[C:\dev\GMC\sdk\frameworks\mx \controls\MenuBar.as:1431]
I build the MenuBar example in the offical Doc.
<menuitem label="Menu1">
<menuitem label="MenuItem 1-A" data="1A"/>
<menuitem label="MenuItem 1-B" data="1B"/>
</menuitem>
<menuitem label="Menu2">
<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>
then I click on the menu to activate it.
then I move the mouse quickly a circular way over the menubar
the trick is to move over the "SubMenuItem 3-B" and go as
fast as you can
on the first menu: "Menu1"
doing this will crash after 10 seconds (depend where the
mouse move)
it seems that the submenu is not properly closed, or its
parent menu is dead before him...

to be more precise, it is certainly related to SUBMENU.
nothing happen with simple 1 level menu.
so troubles should begin with items "SubMenuItem 3-A" and
"SubMenuItem 3-B" when mouse
move over them quickly to another menu, for example "Menu1"
then go back to the parent of the
submenu ("Menu2").
show() crash to display "Menu2", may be because submenu is
not properly closed.

Similar Messages

  • Mx.controls.menu - set position of submenu flush with parent

    My boss has issues with the Flex Menu control and it's submenu's being positioned slighty down and overlapping to the parent Menu. I have been able to change the position by extending the Menu class, but now the submenu's don't hide - they stick around when they should hide on parent item rollover or document click... anyone got a fast fix for this? I am still learning the basics, so any help with be appreciated.
    Thanks in advance.
    Custom Menu code attached: (scuse the spaced out code)
    package {
    import mx.controls.Menu; 
    import mx.core.mx_internal; 
    import flash.display.DisplayObjectContainer; 
    import mx.controls.listClasses.IListItemRenderer; 
    import mx.core.Application; 
    import mx.controls.menuClasses.IMenuItemRenderer; 
    import mx.managers.PopUpManager; 
    import flash.geom.Point; 
    import flash.display.DisplayObject; 
    import flash.geom.Rectangle; 
    import flash.utils.clearInterval; 
    use namespace mx_internal; 
    public class CustomMenu extends Menu{
    private var isDirectionLeft:Boolean = false; 
    private var subMenu:Menu; 
    public function CustomMenu(){
    super();}
    public static function createMenu(parent:DisplayObjectContainer, mdp:Object, showRoot:Boolean = true):CustomMenu{
    var menu:CustomMenu = new CustomMenu();menu.tabEnabled =
    false;menu.owner = DisplayObjectContainer(Application.application);
    menu.showRoot = showRoot;
    popUpMenu(menu, parent, mdp);
    return menu;}
    override mx_internal function openSubMenu(row:IListItemRenderer):void
    supposedToLoseFocus =
    true; 
    var r:Menu = getRootMenu(); 
    var menu:CustomMenu; 
    // check to see if the menu exists, if not create it
    if (!IMenuItemRenderer(row).menu){
    menu =
    new CustomMenu();menu.parentMenu =
    this;menu.owner =
    this;menu.showRoot = showRoot;
    menu.dataDescriptor = r.dataDescriptor;
    menu.styleName = r;
    menu.labelField = r.labelField;
    menu.labelFunction = r.labelFunction;
    menu.iconField = r.iconField;
    menu.iconFunction = r.iconFunction;
    menu.itemRenderer = r.itemRenderer;
    menu.rowHeight = r.rowHeight;
    menu.scaleY = r.scaleY;
    menu.scaleX = r.scaleX;
    // if there's data and it has children then add the items
    if (row.data &&_dataDescriptor.isBranch(row.data) &&
    _dataDescriptor.hasChildren(row.data))
    menu.dataProvider = _dataDescriptor.getChildren(row.data);
    menu.sourceMenuBar = sourceMenuBar;
    menu.sourceMenuBarItem = sourceMenuBarItem;
    IMenuItemRenderer(row).menu = menu;
    PopUpManager.addPopUp(menu, r,
    false);}
    else
    //commented out can't resolve Implicit coercion error
    //menu = IMenuItemRenderer(row).menu;
    var _do:DisplayObject = DisplayObject(row); 
    var sandBoxRootPoint:Point = new Point(0,0);sandBoxRootPoint = _do.localToGlobal(sandBoxRootPoint);
    // when loadMovied, you may not be in global coordinates
    if (_do.root) //verify this is sufficient
    sandBoxRootPoint = _do.root.globalToLocal(sandBoxRootPoint);
    // showX, showY are in sandbox root coordinates
    var showY:Number = sandBoxRootPoint.y; 
    var showX:Number; 
    if (!isDirectionLeft)showX = sandBoxRootPoint.x + row.width+10;
    else
    showX = sandBoxRootPoint.x - menu.getExplicitOrMeasuredWidth();
    // convert to global coordinates to compare with getVisibleApplicationRect(). 
    // the screen is the visible coordinates of our sandbox (written in global coordinates) 
    var screen:Rectangle = systemManager.getVisibleApplicationRect(); 
    var sbRoot:DisplayObject = systemManager.getSandboxRoot(); 
    var screenPoint:Point = sbRoot.localToGlobal(new Point(showX, showY)); 
    // do x 
    var shift:Number = screenPoint.x + menu.getExplicitOrMeasuredWidth() - screen.right; 
    if (shift > 0 || screenPoint.x < screen.x){
    // if we want to ensure our parent's visible, let's  
    // modify the shift so that we're not just on-screen 
    // but we're also shifted away from our parent. 
    var shiftForParent:Number = getExplicitOrMeasuredWidth() + menu.getExplicitOrMeasuredWidth(); 
    // if was going left, shift to right. otherwise, shift to left 
    if (isDirectionLeft)shiftForParent *= -1;
    showX = Math.max(showX - shiftForParent, 0);
    // now make sure we're still on-screen againscreenPoint =
    new Point(showX, showY);screenPoint = sbRoot.localToGlobal(screenPoint);
    // only shift if greater our position + width > width of screenshift = Math.max(0, screenPoint.x + width - screen.right);
    showX = Math.max(showX - shift, 0);
    menu.isDirectionLeft =
    this.x > showX; 
    // now do yshift = screenPoint.y + height - screen.bottom;
    if (shift > 0 || screenPoint.y < screen.y)showY = Math.max(showY - shift, 0);
    menu.show(showX, showY);
    subMenu = menu;
    clearInterval(openSubMenuTimer);
    openSubMenuTimer = 0;

    Maybe call menu.move instead of menu.show

  • IPhone 5s camera app won't open and crashes from lock screen and control menu

    Hello, I recntly got a Black iPhone 5s 16gb and it was working fine. Then sudenly the camera app started crashing after i took photos. Soon later the camera app wont open at all and if i try opening from the lockscreen the phone just reboots. Ive tried just resetting all settings just off the phone and nothing happened, so i decided to restore my iPhone to factory settings and still had no luck. I also had a problem with the flashlight it stopped working aswell (went gray on control menu) and all flashlight apps wont even. I also found out that my snapcat front camera (selfie camera works) and there is no 'swap button.
    This is the second time Ive been suffering from a camera issue the first one was ery similar the shutter wouldnt open because there was no memory, but now ive got 9.1GB free so this cant be the problem.  Other reviews i have read state that the phone has a hardwear issue and need to be replaced.

    FIX FOR REAR CAMERA AND FLASHLIGHT!!!
    I also had the same flash and rear camera problems as everyone else but I figured it was a software problem.
    To fix the flash/flashlight, simply download the flashlight app. The one everyone used before iOS 7. The flash should work immediately.
    To fix the rear camera go to Settings > General > Restrictions. Enable restrictions and turn the Camera off, then take the restriction off. Check your camera, it should work immediately.
    Hope this answers a lot of questions and saves a bunch of money due to Apple's failures.
    Cheers,
    Tim

  • New folder is not visible inside my project but shows in Windows Explorer.

    I created a new folder under another folder.  The new folder is not visible inside my project but shows in Windows Explorer.  Also, if I try to add another folder of that same name, it denies the action since the folder (although invisible) already exists.  My co-worker can access the same file (on a share drive) and see the new folder just fine.  This error occurs whether I was the one creating the new folder or she is the one creating the new folder.  I am new to RoboHelp and she has used it for years.  I suspect something is not yet set up right on my side.  Ideas? (I thought I posted this yesterday but I can't find it anywhere)

    Hi there
    What version of RoboHelp are you using?
    Did you create the folder from inside RoboHelp or did you create it using Windows Explorer?
    Cheers... Rick

  • Apps menu shows 5 updates available, but when I go to download them it says none are available

    apps menu shows 5 updates available, but when I go to download them it says none are available.  How do I remove that number?

    Get some apps from someone else, perhaps? You can check by doing a "Get Info" on your apps; that will show the account under which they were purchased.
    Oh, and just to clarify so I'm not barking up the wrong tree, what exactly is iTunes saying? Is it showing the number in the icon indicating that there are five apps to be updated but showing the screen that says "No updates are currently available"? Or is it giving an error message somethign like "the item you requested is not available in the iTunes Store"?
    Message was edited by: varjak paw

  • Remote Control Menu Button

    Starting from the top, I have a 1st play title menu (A) with 4 buttons that are targeted to 4 other menus (B) – each of which, have multiple motion buttons leading to individual clips (C).
    I would like to be able to click on the Remote Control Menu button anywhere within the DVD and have it return to the 1st play title menu (A). In the Disc Inspector, I have set the “Remote Control” pull down menu to the 1st play title menu (A).
    I can achieve what I want by clicking on the Remote Control “Title” button but not the “Menu” button. What am I missing?
    Thanks in advance for your help.

    Sorry - I made an assumption that you were not able to go fro a track to the title menu... what you are asking is to go from a menu to the title menu by using the ;menu' key.
    Sadly, it won't be possible - the Menu key is designed to move only between tracks and menus. If you are in a track it will take you to a menu, once there, pressing it again willr eturn you to the track.
    You need to use the 'return' key to traverse through the menus, but it isn't a robust implementation in DVDSP.
    Therefore, the only way to accomplish what you want is to use the Title key on the remote control when in a menu... unless you add a button to each sub menu that jumps to the title menu.

  • Upload menu showing folders not files?

    When I try to upload a file in either Safari or Firefox, the upload menu shows only folders, not files. The folders are not clickable, so I am unable to upload anything.
    Ideas?
    Brenda

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot insafe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain models.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Contextual Open With Menu shows old non-existent Applications

    Open With Menu: Shows multiple applications. It even shows versions of older applications that are no longer on my hard drive. And if I select these older version, those older applications launch! I've checked the About... menu selection on these older versions, and sure enough it says the older version. Example: I only have the latest version of Opera 9.24 on my drive, but 3 older versions, plus 4 of one of them show. I can click each one and they ALL launch with separate windows for each one.
    http://docs.info.apple.com/article.html?artnum=305627
    I followed the instructions to trash <com.apple.LaunchServices.plist> file and Restarted and the menu STILL lists all the applications. I then checked the Prefs folder again, and the <com.apple.LaunchServices.plist> hadn't even recreated itself yet.
    I'm totally stummped

    I just realized that in my previous post I neglected to mention, that the problem has quickly returned. Sorry for any confusion.
    Now after two tries, I notice that some .gif files have Preview icons others Photoshop. Some .gif files are listed to open with Preview, others with PS.
    If I use Cmd + i on a wrong iconed file and scroll down to any other app, select it, let the icon change, then without doing anything else, scrolling back up to the default (Preview), the icon finally changes correctly. Change All is now available, but clicking it has no effect on any other files that have the PS icon. Some don't even change over from PS being the default app to Preview.
    Same problem with .txt files. Some TextEdit, others Excel. So.. I am just changing them one by one, whenever I need to open one that is wrong.
    At least the multiple apps in the Open With pulldown are gone
    I'd sure like to know:
    1) Why are my Library files corrupting and
    2) Why is Dr. Smoke's fix creating icon problems
    3) Out of the 1,000s of threads, I wonder what the possibility of the good Doctor ever finding this on and helping us/me find a total solution. Help us Dr. Smoke, we need youuuuuuuuuuuuuuu...

  • Am using PS Elements 8 with Vista.The print menu shows: "Paper Type:Unknown"

    Am using PS Elements 8 with Vista.The print menu shows: "Paper Type:Unknown".I want to use glossy photo paper.How do I do this ?
    Veblen

    Make sure the Printer is installed on your machine. If the printer is not installed on your machine the paper type will come as unknown.
    After installing the printer :-
    1. select the printer in the "Select Printer" setting.
    2. In the Printer setting option click on "Change Settings" button.
    3. Select the paper in the "Paper type" dropdown list.

  • I have CS2 but my help menu shows up as Photoshop Elements

    I have CS2 but my help menu shows up as Photoshop Elements. Does any one know what the issue is?

    THANK YOU CHRIS!
    You solved my problem. I did have one unused language defined, i thought i needed 2 languages but apparantly i don't, because my DVD now works fine.
    It was very hard to trace the problem because the whole concept of languages and menus is still sort of unclear to me. I guess i need to do some studying on that. The DVDP manual sadly lacks a good tutorial on how to set up a multi-lingual DVD with multiple subtitle streams.
    Now i've set up 2 menus for each version (the movie with and without subtitles), only one language and all is well.
    One thing still puzzles me: The first version (the one with the unusued language) did play fine on a G4 with Panther. The white menus showed up on a G5 with Tiger and on my standalone DVD-players. So somehow Quicktime also plays a role in this. The fact that this is a DVD9 has nothing to do with it. Thanks again.

  • Crashing whenever using mx.controls.Alert.show

    Flex Project: Desktop (AIR)
    Flex SDK: 4.1
    Flash Builder 4
    Problem: Whenever I use Alert.show even with the simplest strings passed it crashes showing the following error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:566]
    And it is pointing at Alert.as line:
    var sm:ISystemManager = ISystemManager(FlexGlobals.topLevelApplication.systemManager);
    How do I use this? What's wrong? Any fix?

    It sounds like you're referencing a NULL object somewhere.  Any chance you could provide us with some sample code?  I just successfully tried the following out:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
                                applicationComplete="init()">
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <fx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   public function init():void
                        Alert.show("This is a test", "My Alert");
              ]]>
         </fx:Script>
    </s:WindowedApplication>
    Thanks,
    Chris

  • Where can I find the GPS coordinates in iPhoto 11 for geotagged pics? In iPhoto 09 this information was available under the Photos menu "Show Extended Photo Information".

    Where can I find the GPS coordinates in iPhoto 11 for geotagged pics? In iPhoto 09 this information was available under the Photos menu "Show Extended Photo Information".

    I think you can only see the map.  To see the actual EXIF data you would need to export and use a viewer.

  • Control Panel shows Flash Player icon but not listed in Programs and Features

    Several sites such as Hulu.com and my university homework page keep telling me that I require Flash Player 10 or higher and to download and install before continuing.  So when I try, this is the message I get:  Flash Player is pre-installed with Internet Explorer in Windows 8.  And then in the box below, it says:  Flash Player is disabled.  I've tried all of the steps to correct this issue, but nothing is working for me.  Also the control panel shows the Flash Player icon, but when I go into the programs and features, Flash Player is not listed at all.  What am I doing wrong??
    OS WINDOWS 8 and IE 8

    Hi,
    Microsoft embeds Flash Player in Internet Explorer on Windows 8.x so you won't see a separate item in Programs and Features for Flash Player ActiveX (the version used by IE).  If you install Flash Player Plug-in for non-IE browsers it'll create an entry in Programs and Features.
    Since you didn't specify which troubleshooting steps you've taken, have you tried the ones listed here Flash Player Issues | Windows 8? Also, when you go to this page, Adobe - Flash Player do you see the Flash animation at the top of the page? If so, what version is detected as being installed in the 'Version Information' widget?  The latest Flash Player version for IE is 15.0.0.167.  If that's not the version listed, please run Windows Update to get the latest version of Internet Explorer or use the link at the bottom of the Flash Player Issues | Windows 8 page.
    Maria

  • My MX-922 quick menu shows the scanner but no printer. It doesn't show up in the drop down in tools.

    MX 922 quick menu shows up as scanner but not as a printer. It doesn't show up in drop down menu in tools.
    So I can't print from Canon appications. Mac - Yosimite

    Hi COGO,
    You can try reinstalling the printer using the latest drivers from the Canon USA website to get the printer to show up in the Quick Menu.  Prior to reinstalling, please close the Quick Menu and restart your Mac.  Once your Mac is restarted, please click here to go to the Drivers and Software page for the PIXMA MX922.  Once on the initial download page for your model, please do the following:
    1. Verify that the operating system detected in the "OPERATING SYSTEM" drop-down menu is correct, and if it is not, please click the drop-down menu to select your operating system.
    2. Next, please click on the red arrow next to the "RECOMMENDED FOR YOU" section and click the CUPS drivers file. When you do, a red DOWNLOAD button will appear. Please click on the checkbox below the DOWNLOAD button, then click the red DOWNLOAD button to begin the download. The time for the download process may vary depending on the speed of your Internet connection and the size of the file being downloaded.
    Once you have downloaded the CUPS drivers file, please follow the steps above to also download all other items from RECOMMENDED FOR YOU and DRIVERS sections. If you plan on using the printer wirelessly, you will also want to download the Canon IJ Network Tool from the SOFTWARE section.
    Once all items are downloaded, please double-click on each of the items to install them on your Mac.  Please ensure that the IJ Network Tool is the last item installed. Once all items have been reinstalled, please open the Quick Menu.
    Hope this helps!
    This didn't answer your question or issue? Please call or email us at one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • HELP !  why doesn't color picker select specific color ? i make secondary layer and use the tool but no colors are selected and the gray out menu shows nothing !

    HELP !  why doesn't color picker select specific color ? i make secondary layer and use the tool but no colors are selected and the gray out menu shows nothing !
    what am i missing ??!!

    Please add you system info and SpeedGrade version and build number if you actually want help.

Maybe you are looking for