Hi David,

I think that most people, when reach Flash ContextMenu feature, don't find what they'd expect to find for various reasons (most to less annoying ;)):

* The most annoying is the two menu items nobody can't remove. "Settings..." and "About Flash Player x". Please can't you think in other way to put that Flash Player functionality?, I'm sure there's other solutions you smart people could implement.

*ContextMenu looks ugly and relys on operating system, so the application's look and feel could broken due to changes in SO (for example in Windows, set the enviroment to remove all animations and promote the performance over graphics).

*We can't use icons and nested menus.

*I find a bug in ContextMenu regarding diferent behaviours in IE and Firefox.(I submit it in the Adobe's bug page). The problem is that when I click outside the contextmenu and inside a MovieClip with some click handler attached, in Firefox I only have to do 1 click to hide the menu and execute the handler. In IE, first click removes the context menu, second click exec the function handler attached to the MC.

*Sometimes the behaviour is a bit tricky. For example with items like COPY, CUT and PASTE, we must to append " &" to be able to use our own handlers to override functionality.

*If I have a MC as a cursor, and I point a MovieClip with a context menu attached, I can't show the menu since the cursor is always between the MC and the hiden mouse pointer, so I can't use a cursor if I want to use a context menu in a particular moment.

These are the problems I found working with ContextMenus, clients ask questions regarding this issues, and we only can say "we can't do nothing about this", but why?, wha's the reason?.

I submit a couple of times bugs and wishes in Adobe's wish and bug form report, but seems that ContextMenu is the same in FP9.

Hope Flash Player Team could brings a new usable and beautiful Context Menu in Flash Player 10 ;).

Best,

C.



On 7/5/06, David Mendels <[EMAIL PROTECTED]> wrote:

Hello,
 
 
You can't remove the About menu item.  If there are features you want us to add to context menus in Flex, please submit: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
 
-David


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pottavathini, Sathish
Sent: Wednesday, July 05, 2006 2:24 PM

To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Custom Context Menus

That should not matter, if the OS is not supported then context manu doesn't appear in that case. If they are allowing custom menus then i fail to understand why they don't allow submenus. The main reason people write their programs in flex is for the richness in it, if it doesn't offer simple things like context menus then it works so against it.
 
Sathish
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of Ben Stucki
Sent: Saturday, July 01, 2006 5:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Custom Context Menus

The context menus are probably a special case, as they are quite obviously rendered by the OS. Windows has context icons and submenus, but do older Mac and Linux versions have these features? I don't know for sure, but I'm guessing not every targeted OS has these. It's a critical goal that flash works consistently across all platforms. In a few cases like this it means going with the lowest common denominator.

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle
Sent: Friday, June 30, 2006 6:19 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom Context Menus

 

> but i don't see any reason for not allowing icons and submenus!

HAHA I don't either but...

Hey, have you used Flash?

We have been asking for this for years man! You have to keep nagging the Flash Player team!

Peace, Mike

On 6/30/06, Pottavathini, Sathish < [EMAIL PROTECTED]> wrote:

I understand #1, but i don't see any reason for not allowing icons and submenus!

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com]On Behalf Of Michael Schmalle
Sent: Friday, June 30, 2006 1:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom Context Menus

Simply put;

No and No.

These have been asked for for along time but there is the line and you hit.

You also cannot remove the About menu item, which is required so that users can find out what version of Flash Player they are using.

Sorry :)

Peace, Mike

On 6/30/06, Jeremy Rottman <[EMAIL PROTECTED]> wrote:

I am working on a real estate transaction app, done in flex/cf. To
stream line things and to make it a little eaiser to get the data the
admins want, I am using a custom context menu on my data grids.

I have run into something I dont really conside a problem, but it is
something I would like to do. I have already created my context menu,
and it works just fine. Two things I would like to do is:

1. Remove the Settings menuitem and remove the About Adobe Flash
player 9 menu item. I have an inkling that the poeple using it might
confuse those with somehting else. Can this even be done?

2. I would also like to add small icons next to the menu items to give
it a nice look and feel. I have searched the live docs and cant seem
to find this. Any help with this would also be greatly appreciated.

Here is the code I am using.

import flash.ui.*;
import flash.events.*;
import mx.controls.dataGridClasses.*;
import mx.controls.Alert;





//----------------------------------------------------------

//*****************HANDLE LISTING SEARCH CONTEXT
MENU**********************


// SET CONTEXT MENU VAR
private var listSearchM:ContextMenu;

private function applyContextMenu(){
createListingMenu();
listingSearchDG.contextMenu = listSearchM;

}

private function createListingMenu(){
listSearchM = new ContextMenu();
listSearchM.addEventListener("menuSelect", menuSelectHandler);
listSearchM.hideBuiltInItems();
var customContextArray:Array = new Array();

var newList:ContextMenuItem = new
ContextMenuItem("Create New Listing");
newList.addEventListener("menuItemSelect",
newListHandler);

var conClose:ContextMenuItem = new
ContextMenuItem("Convert To Closing");
conClose.addEventListener("menuItemSelect",
conCloseHandler);

var conRental:ContextMenuItem = new
ContextMenuItem("Convert to Rental");
conRental.addEventListener("menuItemSelect",
conRentalHandler);

var canList:ContextMenuItem = new
ContextMenuItem("Cancel Listing");
canList.addEventListener("menuItemSelect",
canListHandler);

customContextArray.push(newList);
customContextArray.push(conClose);
customContextArray.push(conRental);
customContextArray.push (canList);

listSearchM.customItems = customContextArray;
}


private function menuSelectHandler(event:ContextMenuEvent):void

{

var renderer:DataGridItemRenderer =
DataGridItemRenderer(event.mouseTarget);

trace("rowIndex: " + renderer.listData.rowIndex);

trace("columnIndex: " +
DataGridListData(renderer.listData).columnIndex);

}

// TEST HANDLERS

private function newListHandler(){
Alert.show("You have selected to create a new list")

}

private function conCloseHandler(){
Alert.show("You have selected to Convert to a Closing")
}

private function conRentalHandler(){
Alert.show("You have selected to Convert to a Rental")
}

private function canListHandler(){
Alert.show("You have selected to Cancel a listing")
}




--
What goes up, does come down.




--
What goes up, does come down.




--
::| Carlos Rovira
::| http://www.carlosrovira.com __._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to