ActionScript 2.0 :: Mark Options In Right Click Context Menu?
Oct 6, 2005Is 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).
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).
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]......
i build a context menu and i want when user click on contextmenuitem then check mark tick is visible with contextmenuitem and when again user click on the same contextmenu item then check mark tick is visible off
View 1 RepliesIs 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 RepliesAnybody 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?
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?
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 Repliesif 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?)
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 RepliesSince 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 RepliesCan 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 RepliesI 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.
[code]...
I would like "as.org rules ok" to be a variable loaded from an external .txt file. Possible?
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 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 RepliesHow create Context menu in AIR application plus how add sub menu against any parent item in Flex?
View 2 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 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 RepliesBasically, 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]....
I am using Flash 8 by the way. Anyways what I am doing is making a menu with different options. I need the user to click on various buttons from the menu and then after those buttons are clicked, an animation needs to play and then return to the original menu. I have got the mouse to follow my custom cursor and made the general outline of the menu, but no buttons so far.
View 3 RepliesI'm having some trouble with drop down menus. I've got them set up with onrollover to display the menu options and use both rollout & dragout to deactivate (which prevents the menu from sticking by accidentally "dragging" off the area).The menu displays just fine, and I want the background of the options to highlight (by switching color) when the mouse moves over it or presses on it. Unfortunately, nothing happens.I used this as my base color switch
------------------------
function paint(mc, brush){ var fincolor = brush;myColor = new Color(mc);myColor.setRGB(fincolor);}[code]..........
I have a bunch of menus that will over lap each other at different times, and they have buttons in them you can click for commands. But when I have menu B on top of menu A, like cards, I don't want the onPress commands used in menu B reacting with buttons on the menu A beneath. Normally I would just move the menus, but in this case, they need to be laid out like cards.
View 1 Replies[Code]...
how to add addevents to the menus in the popupButton.
Can I create context menu with two levels, like this (Show, Quality > (High, Middle, Low), ...)?
View 1 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 RepliesIs 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.
How to find out which menu item was selected?
cm1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,changeColor);
cm2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,changeColor);
function changeColor(event:ContextMenuEvent):void{
[code]....