Hi All,
It worked . If we assign the context menu using the id of datagrid then the
context menu works, for example if the id of datagrid is dg, then by using
dg.contextmenu = cm. But I wonder why it doesn't work by assigning it directly
in datagrid using binding.
Thanks
Nitin Gopi
Angelo
According to the documentation at
http://livedocs.adobe.com/flex/3/html/help.html?content=Menus_4.html - The
primary drawback to using the context menu API is that it does not support
submenus.
But, there are other ways to skin a cat. Check these links out...
Solved this - added context menu within AdvancedDataGroupItemRenderer.
--- In flexcoders@yahoogroups.com, MicC chigwel...@... wrote:
When a context menu on an ADG is clicked and the ADG cell is not a hierarchy
node, the ContextMenuEvent.mouseTarget is ADGItemRenderEX and info about the
This worked:
myCanvas.removeChildAt(myCanvas.getChildIndex(event.mouseTarget));
and
myCanvas.removeChildAt(myCanvas.getChildIndex(event.mouseTarget.parent));
depending on whether the mouse is over the root Panel component or the child
containers added to the panel.
The harder part is
...@yahoogroups.com] On Behalf
Of jmfillman
Sent: Wednesday, September 02, 2009 11:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Context Menu mouseTarget Issue
This worked:
myCanvas.removeChildAt(myCanvas.getChildIndex(event.mouseTarget));
and
myCanvas.removeChildAt
I did file a bug with Adobe. Hopefully it'll be addressed soon.
Interesting that it was encountered in FlashPlayer 9. I don't recall which
version of 9 I had, but I did not encounter this error until I went to
FlashPlayer 10.
For my application, it is critical that particular conectMenu items
Not here. I am still using Flash Player 9.0.124.
--- In flexcoders@yahoogroups.com, jmfillman jmfill...@... wrote:
Thank you for the follow-up. The blankMenu is actually a left over from my
actual application and wasn't needed for this sample code.
This worked fine in FlashPlayer 9, so
I think I know why it crashes (Although it should not crash the browser - it
should fail with a Flash null object error. You should file a bug).
When a right click event happens, a mouse out event happens first (Why? I don't
know. Maybe this is a bug too) so your mouseOt function gets called
Thank you for the follow-up. The blankMenu is actually a left over from my
actual application and wasn't needed for this sample code.
This worked fine in FlashPlayer 9, so must be a bug with 10.
JF
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:
I tried your code and it
I tried your code and it crashes my browser here. I could not find a way to
stop that behavior in my (Admittedly short) testing.
The only thing that jumped out at me was that your blankMenu is a null object
as it is never instantiated. Unfortunately, even if it is instantiated, the
crashing
Any suggestions? Am I doing something wrong?
JF
--- In flexcoders@yahoogroups.com, jmfillman jmfill...@... wrote:
The code below causes both IE and Firefox to crash (haven't tried others).
The problem seems to occure when removing an item from a custom context menu.
It doesn't even debug,
You might try running the same behavior from a simple button, instead
of from a context menu, since that might give you a sense of where the
problem lies: i.e. if it occurs even when you run the behavior off a
button, then the problem presumably has nothing to do with the context
menu.
--- In
You can't get rid of those two (limitation of the player).
- Daniel Freiman
On Sat, Jun 21, 2008 at 8:01 PM, markgoldin_2000 [EMAIL PROTECTED]
wrote:
I am using this:
var menu:ContextMenu = new ContextMenu();
menu.hideBuiltInItems();
but when I run my program and click on a cell with the
I am using this:
var menu:ContextMenu = new ContextMenu();
menu.hideBuiltInItems();
but when I run my program and click on a cell with the right mouse I
have my items alone with standard Settings, About ... items.
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:
Well, yes. The menuItem has an event listener in the parent
application that calls a function. I solved it.
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:
By functions do you mean event listeners? How are you setting it
up?
A little examplecode:
Start of code
//creates a new entry in the contextMenu
// which is handled by the (self-written) function doMyCommand(Event)
var myCMI:ContextMenuItem;
myCMI = new ContextMenuItem(myMenuCommand);
myCMI.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, doMyCommand);
If you are using a custom item renderer why aren't you just adding
the context menu to the item renderer?
As a note if you are extending one of the default item renderers
they have the mouse disabled in the constructor so this needs to be
fixed.
--- In flexcoders@yahoogroups.com, tsiesser
Wow - images are not mouse targets. Okay, that's going to be
challenging - because I was actually planning on some special actions
to occur when the user clicked on the corners of the image. So maybe
the transparent sprite will be the key? I'll try it...
Thanks!
--Tracey
--- In
It occurred to me to try adding the context menu to the item renderer,
but I wasn't sure what would happen to the blank areas of the
TileList, like if there aren't enough data items to fill the entire
space... does the list get item renderers with data=null, or are there
only renderers where
areas of a renderer into separate
targets.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tsiesser
Sent: Saturday, June 02, 2007 9:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Context menu mouseTarget vs. itemRenderer
I've currently worked around this issue by punching a small hole at
the registration point of the cursor movieclip. This allows the mouse
click to pass through to whatever is directly underneath the cursor.
My theory is that the cursor movieclip is not a descendant of the
application instance on
Hi everyone,
I don't want to hijack this thread but it reminded me about one
problem I had with the context menu.
Does anyone knows a way to put a check before an item in the context
menu ? Flash Player can do it (see Play and loop entries). I could not
find anything in the ContextMenu Class.
22 matches
Mail list logo