Actionscript 3 :: Hide Default Options In Right Click Context Menu In Flex?
Oct 16, 2009
I'm developing a flex application and I want to add it a context menu. I got it with this
code:
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();
[code]......
View 2 Replies
Similar Posts:
Oct 6, 2005
Is there possibility to mark options in right click context menu ?
For example, if you right click on Windows bar, Lock the Taskbar is checked (marked).
View 2 Replies
Jun 20, 2010
Basically, I have a button and on click it displays a menu. I want to click that menu a second time and the menu closes. Currently, every time you click the button, the menu reopens. I pasted the Flex livedoc example below. If you click the button, the menu keeps reopening.Now, I rigged it up by setting a var to open and closed, so when clicking the button it does a check. However, if you click away from the screen, the HIDE event gets dispatched, and the menu closes. This messed up the open close var being set.
How could I make this Flex example below show the menu on button click, and then on a second button click, it closes the menu? Take into affect that if you click away from the menu, it closes it.Also, I played around with the MOUSE_DOWN_OUTSIDE event for the button and set the preventDefault, and the FlexMouseEvent event.cancelable is set to false.Changing to a PopUpMenuButton is not an option. I have to much skinning involved.Here is the Flex example:
<mx:Script>
<![CDATA[
// Import the Menu control.
import mx.controls.Menu;
[code]....
View 1 Replies
Jan 22, 2008
Is it possible to have a context menu on a multiple frame movie with all the options except next, prev and play..?I want to have zoom in/out but not next/prev..
View 3 Replies
Oct 13, 2005
how to hide the context menu (built in as well as custom) completely? See the link.[URL] Nothing happens when you right click the ad at bottom-left.
View 9 Replies
Apr 16, 2008
In the default context menu, there's the quality adjustment settings with a sub menu for the low, medium, high. I know how to manipulate the menu at the top level just fine (so don't worry about having to explain how to use the ContextMenu classes), I'm just wondering if it's possible to create sub-menus like that quality one.
View 1 Replies
Dec 7, 2002
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?
View 11 Replies
Oct 8, 2009
i 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?
View 3 Replies
Nov 18, 2009
does anyone know how to make right clicking work in as3?i don't want a context menu to appear, i just want it to work as an EventListener for MovieClips.For example, imagine that RIGHT_CLICK is a MouseEvent, it would look like this:[code]i know the code wont end up looking like this, but does anyone know how to pull off this same idea using a right click?[code]
View 8 Replies
Nov 30, 2009
if this is the code:
i
Code:
mport flash.display.*;
import flash.external.ExternalInterface;
[code]...
then where do i tell it that i want to have the MouseEvent EventListener on my movieclip labeled "mastButton" ?(obviously i know its not really a MouseEvent but do u know what i mean? like how to i link this right click event TO a particular movieclip?)
View 5 Replies
Oct 15, 2008
I noticed that when I publish my fla., the right-click context menu gives any person viewing the site the option to download the .swf (although the menu calls it a video) to their hard drive. That's krazy...In any event, I need to disable the option in the right-click menu. I read the tech report at Adobe
View 5 Replies
Jul 20, 2010
Since this is my first post here, I'd like to say hi to you all, and glad to be where I can share both enthuisasm and possible issues with Adobe Flash in general.And, regarding this first post, I'll be more than glad if someone could help me with this.It's a simple straight forward issue: Can a link of "Settings" inside Context (Right Click) Menu be placed in a movie as a simple link that opens it in a same manner (as in pic 2)?
View 1 Replies
Feb 8, 2006
Can anyone tell me if there is any way by which I can disable the right-click menu in Flash (SWF not EXE) , completely (I don't even want the About Macromedia.. link). I know that its possible to add ContextMenu items but I don't want to show the Settings.. or the About Macromedia.. items too.
View 9 Replies
Jul 21, 2011
I have javascript making my swf enabled for right-click interaction (which means no context menu), but for some specific movie clips I actually do want the context menu to show on right click. I was thinking to do this I need some action script code that will open the context menu without a right click, since the javascript blocks the swf from knowing a right click has occured (the swf only knows that the javascript has told it to run some function).
The context menu method display(stage:Stage, stageX:Number, stageY:Number) sounds like it would have done the trick, but that is for AIR only.
View 2 Replies
Mar 11, 2011
[code]...
I would like "as.org rules ok" to be a variable loaded from an external .txt file. Possible?
View 3 Replies
Apr 25, 2011
When I attempt to select an item from the right click context menu, it sems as though the mouse "jumps". If I click repeatedly enough sometimes it will trigger the selected item. It only seems to be a problem on Windows FireFox/Chrome. It works fine on Windows IE, Mac Firefox/Chrome/Safari. Any ideas?I've added a function that displays a white halo when you mouse down to show where the computer is interpreting the mouse click.
View 1 Replies
Sep 21, 2011
How create Context menu in AIR application plus how add sub menu against any parent item in Flex?
View 2 Replies
Oct 7, 2009
I have a Movie Clip configured as a Button and I wanted to know how to make the cursor transform into a pointer (little hand) when it's over tat movieclipBut well that was just not the point of the Post what really interests me is that when I click that MC a Pop up menu appears (another MC) but if i decide not to click any of the buttons in that menu the menu will stay there until I click another button or something and i will want it to disappear if a click it for a second time or something like that.
View 1 Replies
Oct 31, 2008
Is there a way to hide the right mouse click pop-up (settings & about flashplayer x). The swf i use is placed in HTML refering to two other pages with some java games. The problem is that this is running at a science center in a browser fullscreen. But people may not open a new window/tab (this happens when you click on "about flashplayer x). I found this: [URL] but is there something similar in AS2? I can use JS.
View 1 Replies
Sep 10, 2009
In my flex app I have custom tooltips on buttons that hide and show based on user context. The problem that I dealing with is that when I call my showTips() function I only want to show tooltips on the buttons that visible in the view. So buttons that on a un-selected tab (tabNavigator) should not show the tooltips. For some reason all tooltips are showing. Is there a way to detect if a button is not in current view, like on a un-selected tab?
View 2 Replies
Oct 14, 2009
I 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.
View 2 Replies
Feb 3, 2010
How we add context menu in datagrid column header.
View 1 Replies
Feb 20, 2011
On 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 Replies
Mar 22, 2011
I 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 Replies
Jul 27, 2011
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.
View 1 Replies
May 5, 2009
[Code]...
how to add addevents to the menus in the popupButton.
View 5 Replies
Feb 22, 2012
How to hide menu item from Menu object ?
View 1 Replies
May 27, 2010
Is it possible to create submenu in context menu (right click menu) in Adobe Flex?
Menu1 >
- Menu1.1
- Menu1.2
[code].....
View 2 Replies
Feb 2, 2011
Is there any workaround to create submenu in a flex context menu other than stopping right click from javascript.
View 1 Replies
Mar 21, 2011
I 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].....
View 3 Replies