Actionscript 3 :: Flex - Create Context Menu In AIR Application - Add Sub Menu Against Any Parent Item?
Sep 21, 2011How create Context menu in AIR application plus how add sub menu against any parent item in Flex?
View 2 RepliesHow create Context menu in AIR application plus how add sub menu against any parent item in Flex?
View 2 RepliesI want to create a context menu item that is similar to the Quality in built-in items here:[URL]
View 8 Repliesi wanted to place some credits item in the right button menu (no links, so no events, just a label with credits). i was looking the contextmenu help, and there is an example of how to add items, disable default items and so on, but i could not find how to attach the menu to the movie (the basic part). i tried both on 'stage' and it tells me that stage does not have a property called contextMenu, so i tried to attach it to a sprite, it runs ok and compiles ok but when i right click on the sprite i get the default menu
var _menu_item:ContextMenuItem = new ContextMenuItem("here goes [code].....
how to add a right click menu with a custom item?
Is there any way to know the parent/component which initiates context menu? I have a panel which contains different custom components. i want to open respective popup window of custom component from context menu when user right click on the respective component.
How can i find the parent custom component which initiates context menu?
for ex:
custom compoent: 1. Label, 2. Buttom
context menu Item: properties
On right click over 'Label' opens a context menu which has item 'properties', on clicking properties it should open custom popoup window showing properties of Label. similarly, for Button.
I am trying to listen Event on click of context menu, but it is not useful.
var contextMenu:ContextMenu = new ContextMenu();
contextMenu.hideBuiltInItems();
var contactList : ContextMenuItem = new ContextMenuItem("Add to Existing List");
[Code]....
All coding on contactListItemRenderer.as and call to datagrid like
<mx:DataGridColumn itemRenderer="com.view.Contact.ContactListItemRenderer"
dataField="fullName" headerText="Full Name" />
Anybody know how to create a custom context menu (right click menu) in Flash?
If it's not possible, wouldn't it be a good idea for Macromedia to put some kind of event or something in there?
Is it possible to create submenu in context menu (right click menu) in Adobe Flex?
Menu1 >
- Menu1.1
- Menu1.2
[code].....
Is there any workaround to create submenu in a flex context menu other than stopping right click from javascript.
View 1 RepliesI'm trying to get the menu width of a menu item in flex 4. I can get it but I have to show the menu first, then hide the menu, do a calculation, and show it again. Is there an easier way to get the item menu width without this hassle?
View 1 Replies[code]...
I would like "as.org rules ok" to be a variable loaded from an external .txt file. Possible?
Within a Chrome extension, how can I inject items into the context menus of 3rd party flash objects?
Is it possible to simply inject items using JavaScript? Is it possible to wrap the players in a container .swf that adds our context menu item along with the items included by the original swf?
Edit: To be clear, what I'd like to do with my extension is add a context menu item to any 3rd party Flash program. So for instance, if a user visits YouTube, I'd like to add my own menu item along with YouTube's custom items.
i need to fire separate method for individual menu item clicked ,so that individual item can handle separate method.and i need know what all the properties are available in menu item like type="radio".
<mx:MenuBar id="jj" labelField="@label" itemClick="MenuItemClick(event)" x="23" y="228">
<mx:XMLList>
<menuitem label="File">[code]......
How to hide menu item from Menu object ?
View 1 Repliesi want to add new Menu in flash IDE and i want to add inside the adobe flash menu. How i can add new menu in menubar and new menu item inside the help menu. is it possible to do this things if yes then which language i have to use for this. what is way to start development and what is the .MXP file and how to create this .MXP file.
View 1 RepliesCan I create context menu with two levels, like this (Show, Quality > (High, Middle, Low), ...)?
View 1 RepliesI am aware of how to reset the right-click context menu to just "settings", but when the file is opened in Flash Player directly from a computer instead of on the web, the drop-down menu in the player is still available. You can even press ctrl+enter to play. My searches just come up with solutions to the right-click menu, and I have a client who wants me to get rid of this menu for a game I've already made.
View 2 RepliesHow can I create a context menu for each movie clip in as2
View 2 Replieshow to make a sub-menu for a flash context menu. I have tried to create a menu item that is a menu in itself, but it wouldn't work.
View 1 Repliesi have AS2 coded menu it's working xml but i can add 11 categories.if i add menu item show page out...i want menu item 11 later menu 12 menu 13 in bottom. sorry my english i add flash file and screen
View 1 Repliesive followed Senoculars drop-down menu tute [URL], awsome stuff, but it seems the submenu's dont disappear to well when you roll out. ..They only disappear if you click on another menu item or when you click outside the menu.
View 12 RepliesI have a Flex app with a viewport that loads a series of other swfs. I would like to place a context menu over top of the SWFs when the user right-clicks. To that end, I have set up a fairly standard context menu where each item has a ContextMenuEvent.MENU_ITEM_SELECT event handler. One problem: The eventHandler never gets called.
If I place the context-menu code anywhere else in the app, i.e. not on top of a loaded SWF, everything works fine. However, when I place the exact same code on the SWF viewport, the context menu items appear, but the eventHandlers are never called.
How we add context menu in datagrid column header.
View 1 RepliesOn my web app, I want to be able to remove the Flash context menu and only leave the ones really needed like the textarea contextmenu.
View 1 RepliesI have a UIComponent (tried it also with Canvas) and some icons in it (sub views). On the UIComponent I defined some extra ContextMenuItems. Now when I'm testing it, the context menu appears only on the subviews (icons) with a right-click. I've checked the documentation but found nothing about required properties for using context menus. Why it's only on subviews?
View 3 RepliesI have a Flex application, running with Flash Player, not AIR, that contains a Tree that I would like to put a custom context menu on.
Tried just doing <mx:Tree ... contextMenu="{MyClassWithStatic.menu}">, but that didn't do anything.
Went searching, and found this quote from some Adobe docs somewhere
In Flex or Flash Builder, only top-level components in the application can have context menus. For example, if a DataGrid control is a child of a TabNavigator or VBox container, the DataGrid control cannot have its own context menu.
so went upwards, trying each parent element until I reached my <Application>-element, which is consistent with what they wrote.
Tried making a Flex component, based on Group (the default) which contained my tree, and the context menu on the top-level element there, hoping it would work, but to no avail.
Is there any other way to manage this that I haven't found yet?
The code I use to create the menu:
var menuItems:Array = [];
var rename:ContextMenuItem = new ContextMenuItem("Rename");
rename.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,
[Code].....
i created an application and it has a menu bar at the top of the stage it also has a loader component below it. i need the loader to load an swf when an item is selected from the menu. Does anybody know how to code this. I am using the following code:
[Code]....
I need a tutorial for a hierarchical drop down menu system that drops down 3 sub levels. Do I make the items in the sub menus individual buttons and then insert them into a movie clip or make every sub menu item a movie clip and insert them into buttons?
View 1 RepliesHow to add custom component in context menu of datagrid.Here custom component like one text box with formatting details.
View 1 RepliesI'd like to add copy and paste functionality to context menu in my Flex application. After creating a separate dummy project for testing, I realize that such options (cut, copy, paste, and delete) are already available in this dummy project without any coding. Both projects are compiled using Flex 4 SDK, run in the same brower (IE) and have the same version of Flash Player (10.2.153.1). However, different context menu are displayed. Here are the difference:
Orig Project: Print, Show Redraw Regions, Debugger, Settings, Global Settings, About Flash Player...
Dummy Porject: Cut, Copy, Paste, Delete, Select All, Settings, Global Settings, About Flash Player...
I am trying to find the best way to improve the user experience when interacting with a context menu in a Flex application. I already know that the context menu in Flex is quite limited in terms of how it is constructed and what it can show.
What I was hoping to do was to implement something similar to what Microsoft Word does in 2010 or later, where when right clicking a little floating palette is displayed above the common popup menu. I was hoping that there was a way to 1) listen for an event that is triggered when a context menu is displayed, and 2) determine the location of the context menu so that I could display a floating palette above the context menu as in Word. So far, I have not found out how to accomplish either of these things.
I suspect that there might be some focus and stage management issues with this approach generally, but I was hoping to at least get to the point where those issues were discovered.