Adobe Dreamweaver Forums



Last 10 THreads :         PS CS4 "Save As ..." format choices appear in duplicate (Last Post : Dan_Dill@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: Colour differences on the web (Last Post : g_ballard@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: SFW and date created (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: sRGB vs. Adobe (1998) RGB (Last Post : Neil_Keller@adobeforums.com - Replies : 0 - Views : 1 )           »          help my flash site opens pop ups? (Last Post : Awebus - Replies : 2 - Views : 3 )           »          Flash IDE randomly creating Symbols (Last Post : MediaMackenzie.com - Replies : 0 - Views : 1 )           »          Wishing I could make Sprite Symbols using F8 (Last Post : MediaMackenzie.com - Replies : 0 - Views : 1 )           »          3 overlapping background images on same page (Last Post : brad_goldstein - Replies : 8 - Views : 9 )           »          help me with adjustments layers in CS4 (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 4 - Views : 5 )           »          Re: Help authenticating installer (Last Post : Awebus - Replies : 0 - Views : 1 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-04-2008, 09:02 AM
borfgordon
 
Posts: n/a
Diggs:
Default Manually calling Menu.hide() within MenuBar results inexception on next show()

Hi,
I have a MenuBar with the following data within it

ROOT
--CHILD1
----SubChild1-1
----SubChild1-2
----SubChild1-3
--CHILD2
--CHILD3
ROOT2
ROOT3

When the mouse exits any Menu I execute a "menu.hide()" and the drop down menu
disappears. When I click again on ROOT1 the menu shows again OK. I am detecting
this by an item rollout event and detecting the mouse position relative to the
menu box boundaries.

This works fine when the menu data does not contain more than one level of
children (i.e. no more than Child1, Child2 and Child3). However ONCE I
introduce a second level of children (subchild1-1 etc) the MenuBar seems to
break.

For example, when the "subchild1-1, 1-2, 1-3" menu displays, when the mouse
exits that menu I properly call "menu.parentMenu.hide()". However once I click
again on ROOT1 I get the following error below. My question is why does calling
menu.hide() when in context of a sub-menu, does the menubar break like this? Is
there some state other than menu.hide() I must reset that is not documented?

RangeError: Error #2006: The supplied index is out of bounds.
at flash.display:isplayObjectContainer/addChildAt()
at
mx.managers::SystemManager/http://www.adobe.com/20 06/flex/mx/internal::rawChildr
en_addChildAt()[/Applications/Adobe Flex Builder 3
Plug-in/sdks/3.1.0/frameworks/projects/framework/src/mx/ managers/SystemManager.a
s:1687]
at mx.managers::SystemManager/addChild()[/Applications/Adobe Flex Builder 3
Plug-in/sdks/3.1.0/frameworks/projects/framework/src/mx/ managers/SystemManager.a
s:1225]
at mx.managers::PopUpManagerImpl/addPopUp()[/Applications/Adobe Flex Builder
3
Plug-in/sdks/3.1.0/frameworks/projects/framework/src/mx/ managers/PopUpManagerImp
l.as:263]
at mx.managers::PopUpManager$/addPopUp()[/Applications/Adobe Flex Builder 3
Plug-in/sdks/3.1.0/frameworks/projects/framework/src/mx/ managers/PopUpManager.as
:169]
at mx.controls::Menu/show()[/Applications/Adobe Flex Builder 3
Plug-in/sdks/3.1.0/frameworks/projects/framework/src/mx/ controls/Menu.as:1406]
at mx.controls::MenuBar/showMenu()[/Applications/Adobe Flex Builder 3
Plug-in/sdks/3.1.0/frameworks/projects/framework/src/mx/ controls/MenuBar.as:1664
]
at mx.controls::MenuBar/mouseOverHandler()[/Applications/Adobe Flex Builder 3
Plug-in/sdks/3.1.0/frameworks/projects/framework/src/mx/ controls/MenuBar.as:1756
]






Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-04-2008, 09:02 AM
borfgordon
 
Posts: n/a
Diggs:
Default Re: Manually calling Menu.hide() within MenuBar resultsin exception on next show()

Anyone have any ideas on this?

I've also tried manually dispatching a MouseEvent.MOUSE_DOWN event outside of
the Menu's visible area to simulate a "click" which triggers the
Menu.mouseDownOutsideHandler() which cleans up the Menus. This works in almost
all cases, however occasionally, when the mouse leaves the visible menu area,
and the event is fired. I continue to get the stack trace as noted above.
Resulting in a completely busted MenuBar system that requires the application
to be restarted.

Any ideas? What other "menubar" state needs to be adjusted when a drop down
disappears?

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:12 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk