ActionScript 2.0 :: Way To Disable Right Click Menu
Jan 19, 2009
my problem is that, when i right-click on my flash movie that is online, then click on play, my question is, is there a way to disable this effect? or even take out the whole play button?URL...
I'm trying to disable the right-click menu for an application I created for the PocketPC(PPC). A projector file was not recognized by the PPC, so I cant use the functions within it. Would someone please educate me on disabling it. By the way - the right-click menu pops up on the PPC when a user touches the screen for an extended amount of time (~1 sec), rather than just a quick tap.
ive 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.
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;
I 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.
The menu is like this http:[url]... (the site is in portuguese but it doesnt matter), when I click in on menu the actual menu does an alpha to 0 and the next menu appears using the alpha from 0 to 100 (and some animations like the cellphone going up).Now, how can I do a menu like that, whatever the menu I choose, it does that alpha animation ?
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].....
I have an array for my menu and submenus.It works fine, but I have to click again on the menu to close it.When it's open it's completly open it takes too much space.how I could make a menu close when I click on another menu item..this is the code on the frame on my main timeline:
I've got a drop down menu. I want to click a tab to make it drop then, if it's open, click it again to close. I've tried a million variations on the script below:
var btn_grp1:String function main1Down(event:MouseEvent):void { if (btn_grp1 != "dwn") {
[Code]....
This works too (once). So the drop down buttons all disapear again, but it won't re-set. The drop down menu stays up from then on.
BTW i'm not set on this method, it just seemed the most obvious i.e. if menu hidden, then show it, set some variable to down (showing), else hide the menu, set var to up (hidden). Not working though.
How do I disable right click functionality for SWF? When I right click on this movie that I have it gives me option to click on a link.How do I take the link out or diable the right click function?
I would like to disable left clicks certain keyframes, i have a movieclip that the user is dragging and when a click is made it has a short animation, but i dont want users to be able to click other things while this animation is running. so i need to disable the left click. the animation is on inside the movie clip.
i would like to know how to disable mouse right-click on flash.maybe there are posts here on kirupa on how to do it but i don't really have a fast internet connection to browse around.
is it possible to diable right click menu using just actionscript in a .swf ? I know if i use <param name=menu value=false> in the html it will disable the right click menu but.... i am just using the swf and wanted to knwo if it is possible to disable right click menu without using html.
I'm building an app with an image upload function. While the uploading process is on I need to disable the context menu (right-click) or at least the items in it
How do i disable the context menu completely? The reason to why i need to do this is that i want to create a rectangle wherever the user clicks, with various text information. Can this be done?
the attached menu has functions for onRollover, and onRollout, however I was wondering if it was possible to create a function for onRelease that would mean that once the menu item was selected, the onRollout would not set the menu back to original color and would leave it highlighted so users could see that this was the page were on via the menu.It is saved in CS3 as I work with CS4 and it does not seem to let me save it back for 8 or earlier versions.
i have made a sniper style game an hav programme a moment where there is pause between each click (reload time) but how do i make it so that when the gun is reloading the left click is disabled, as it stands now while the gun is reloading the aim doesnt move but if u click on an enemy they still die as it stil sees it as clicking on it, how do i disable it for these 2 seconds while my gun reloads
The company i am working for are designing an interactive flash movie that requires the Right click Menu to be entirely disable, or else the right click option to be disabled. The best that we can achieve at present is to limit the context menu to "About..." and "Settings".
Is there anyway of disabling the right click function in flash so we can secure our movie?
Our problem arises from the User being able to click on the "About..." menu item and launching a browser. We require that the user is not allowed to access this. We have tried to change the Default Browser in Windows to a custom browser, but to no joy.
Is there anyway for us to disable the Flash Menu, or, Disable the Right click function completely or, re-route the About Menu item to a default browser so we can prohibit the user from access the default webpage?
How I can give the right mouse button the same functionality as the left one? So that it doesn't matter which button is pressed. If this is not possible, can I disable the right button of the mouse?