How to disable Context Menu of Flash ActiveX control

FLASH

    Next

  • 1. flash instalation
    ok, ive downloaded both flash player and shockwave player, my computer says both are installed, but when i use the internet, i dont see a picture, just a box with a red X in the top left hand corner. can someone PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! my email is XXXX@XXXXX.COM
  • 2. Remove Old Versions
    HI, I ran a software inspection scan at Secunia. The scan identified old versions of flash player still present. In checking the details of the scan, it was identifying instances of active x controls in various applications, e.g. it identies flash player 5.0.42.0, and then says it's found in C:\Program Files\MUSICMATCH\MUSICMATCH Update\MMJB\Swflash.ocx . There are a number of similar "finds" in different applications, with different flash players listed. I uninstalled flash player 9.0.28.0, but it did not have any affect on these old active x controls. If I just delete the various ocx's, will the affected apps still run OK? What's the right (or best) way to remove or update these ocx's? I plan to reinstall flash player 9.0.28.0 after removing the old active x controls. Thanks. Larry
  • 3. Flash 9 in Mozilla or SeaMonkey, will only be
    I continually get a message telling me to download the latest Flash player, even though I have the latest Linux version installed (from Adobe), 9.0.60.something. Why don't the flash servers recognize that I'm running Flash 9 ? When I do the Show Plugins, there is an entry for Flash 7 that always shows BEFORE Flash 9, even after multiple removes & reinstalls. Text from 'Show Plugins' is shown below. Does anyone have any ideas as to why Flash 9 is not recognized ? There is only ONE libflashplayer.so in the PLUGINS directory, the latest one for Flash 9, and the flashplayer.xpt file is in the 'components' directory ... Shockwave Flash File name: libflashplayer.so Shockwave Flash 7.0 r69 MIME Type Description Suffixes Enabled application/x-shockwave-flash Shockwave Flash swf Yes application/futuresplash FutureSplash Player spl Yes Shockwave Flash File name: libflashplayer.so Shockwave Flash 9.0 r60 MIME Type Description Suffixes Enabled application/x-shockwave-flash Shockwave Flash swf Yes application/futuresplash FutureSplash Player spl Yes
  • 4. Problems getting flashplayer upload
    I recently upgraded my pc to windows xp successfully. I use a web site that has an instant messenger. When I try the instant messenger, I get a message that I need to upload the latest version of Flash Player. When I go on the adobe website to do so, and click on install now, the screen gets an hourglass next to my cursor and freezes. I am unable to get the software and am frustrated.
  • 5. No sound, but it might be with the default voice playback option.
    Flash player has no sign. I think the problem is in "control panel", then "sounds", that the Voice PLAY BAck Tab . I HAVE NO DEFAULT PLAYBACK. The default playback should be my sound card.. I can't set it to my sound card. It is an option, but when I select it, and hit apply. It goes back to blank after i close it out. I bet this is my problem. Now solving it, will be tough :(

How to disable Context Menu of Flash ActiveX control

Postby menno.van.baalen@home.nl » Thu, 31 May 2007 16:22:47 GMT

We are developing a PDA application for a wide range of users, varying from 
young to quite old. What we experience in several test sessions, is that many 
people who are unfamiliar with a pda hold the stylus on the screen too long 
when they want to tap an item. The result is, that the context menu of flash 
appears. Most people don't know what happens in this case. 

 So, we want to disable this context menu. We developed a visual studio .NET 
2005 application that holds the Flash ActiveX control because of several 
reasons. I've tried several 'solutions' found on the internet, but all 
unsuccesfull. I also found a way to disable the Context Menu using javascript. 
This is no option for us, but when it is possible with Javascript, it should 
also be possible from a windows (mobile) application, or am I wrong?

 So my question is: 
 How can I disable the context menu of the Flash ActiveX from a Windows 
application?


Re: How to disable Context Menu of Flash ActiveX control

Postby menno.van.baalen@home.nl » Thu, 07 Jun 2007 18:06:08 GMT

I found the solution to our problem. 

 This is the c# code, it is based on sample code found here:
  http://www.**--****.com/ 

 [DllImport("Coredll.dll", SetLastError = true)]
 private static extern bool PeekMessage(
     out PeekMsg msg,
     IntPtr hWnd,
     uint messageFilterMin,
     uint messageFilterMax,
     uint flags);

 [DllImport("Coredll.dll", SetLastError = true)]
 private static extern Int32 DispatchMessage(ref PeekMsg lpMsg);

 [DllImport("Coredll.dll", SetLastError = true)]
 private static extern Int32 TranslateMessage(ref PeekMsg lpMsg);

 [DllImport("coredll.dll")]
 public static extern int PostMessage(IntPtr hWnd, uint Msg, int wParam, int 
lParam);

 [DllImport("aygshell.dll")]
 static extern uint SHRecognizeGesture(SHRGINFO shrg);

 [StructLayout(LayoutKind.Sequential)]
 class SHRGINFO
 {
     public uint cbSize = 0;
     public IntPtr hwndClient = IntPtr.Zero;
     public int x = 0; // POINT
     public int y = 0; // POINT
     public uint dwFlags = 0;
 }

 [StructLayout(LayoutKind.Sequential)]
 public struct PeekMsg
 {
 	public IntPtr hwnd;
         public Int32 message;
         public IntPtr wParam;
         public IntPtr lParam;
         public uint time;
         public System.Drawing.Point pt;
 }

 internal const int WM_LBUTTONUP = 0x0202,
                    WM_RBUTTONUP = 0x0205,
                    WM_LBUTTONDOWN = 0x0201,
                    MK_LBUTTON = 0x01,
                    WM_LBUTTONDBLCLK = 0x0203,
                    WM_CONTEXTMENU = 0x7b;

 private const int WM_NOREMOVE = 0x0;
 private const uint GN_CONTEXTMENU = 1000;
 private const uint SHRG_RETURNCMD = 0x00000001;
 private const uint SHRG_NOTIFYPARENT = 0x00000002;
 private const uint SHRG_LONGDELAY = 0x00000008;
 private const uint SHRG_NOANIMATION = 0x00000010;


 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 [MTAThread]
 static void Main()
 {

 //instead of the normal Application.Run(new Form1); we must manually display 
the form
 Form1 formInstance = new Form1();
 formInstance.Visible = true;

 PeekMsg msg = new PeekMsg();
 while (1 == 1)
 {
 	PeekMessage(out msg, formInstance.Handle, 0, 0, WM_REMOVE);
 	switch (msg.message)
 	{
 		case WM_LBUTTONDOWN:
 	        	Debug.WriteLine(string.Format("lbuttondown: msg:{0}, lparam:{1}, 
wParam:{2}, hwnd:{3}, time:{4}", msg.message, msg.lParam, msg.wParam, msg.hwnd, 
msg.time));

 	                SHRGINFO shrginfo = new SHRGINFO();

 	                shrginfo.cbSize = (uint)Marshal.SizeOf(shrginfo);
                 	shrginfo.hwndClient = msg.hwnd;
         	        shrginfo.x = msg.lParam.ToInt32() & 0x0000ffff;
 	                shrginfo.y = (msg.lParam.ToInt32() & 0x0fff0000) >> 16;
 	                shrginfo.dwFlags = SHRG_RETURNCMD;

         	        if (SHRecognizeGesture(shrginfo) == GN_CONTEXTMENU)
 	                {
   	        	      Debug.WriteLine("in context menu loop");
         	              PostMessage(msg.hwnd, WM_LBUTTONUP, 0, 0);
 	                }

 		        break;
 	        default:
 	                break;
 	}

 	TranslateMessage(ref msg);
 	DispatchMessage(ref msg);
 }



Re: How to disable Context Menu of Flash ActiveX control

Postby derThorstenW » Wed, 20 Jun 2007 17:21:56 GMT

Hi,

 thank you for that piece of code !!!! 
 I've got one problem if i try out your code:
 The name "WM_REMOVE" is not there... only WM_NOREMOVE

 WM_NOREMOVE is 0x0
 i think WM_REMOVE has to be 0x1

 is it correct?

 best regards
 t


Re: How to disable Context Menu of Flash ActiveX control

Postby derThorstenW » Wed, 20 Jun 2007 17:35:19 GMT

seem to work with 0x1.... yeehaaa!

Similar Threads:

1.Disable Tap and Hold Context Menu in Flash Animation

Hi all,

I am trying to figure out a way to disable the tap and hold context
menu in Windows Mobile 6.

I have a Flash interaction movie that has scrolling within the movie.
However, anytime the user scrolls within the movie, the tap and hold
context menu appears and disrupts the animation.  Is there a way to
disable this function within the Flash movie or just disable the whole
thing from the device?

I've searched the Adobe forum, and there doesn't seem to be an
Actionscript 2.0 solution.  Any help would be appreciated.


Thanks,

Daniel

2.how to disable flash context menu in ie7?

hi,
i have  a flash widget in which I have my owen context menu, and so I 
wish to disable the built in context menu.
up until now (in explorer 6, that is) i used a trick i found  that 
prevented the context menu froom appearing, and it worked like a 
charm:
top.frames.location.replace('javascript:parent.dummy1');

the menu.hideBuiltInItems() function is not good enough since it will 
still show the about and settings menu items.
is there any other way to prevent the contextmenu from appearing?

if not, is there  a way to add a menu item with a submenu to the 
builtIn contextMenu?

3.Context menu items disabled in windows control loaded in IE

I've loaded my windows form control into an html document successfully using 
the <object classid="http:...">.  Most things I've tested so far work just as 
well as when they are on a windows form application, but among other issues, 
context menus do not behave the same way.

Creating a context menu works very well for the windows app and works as it 
should.  When put into the web app, the menu items are populated correctly, 
but they are all disabled (dimmed).

Why aren't context menu items available in the web browser?  How else can I 
create a context menu like interface without using the ContextMenu, but 
preserving the ability to create objects above and possibly outside the 
boundaries of the object?

Does there exist a list of limitations imposed on such programming?  Web 
documentation on this method (windows form controls in IE) is very sparse.

Thanks,

Jason

4.Disable Right Click Context Menu in WebBrowser Control

Hi all,

I am creating a simple dialog box with WebBrowser Control, and try to
suppress Context menu when righ clicking. I have done a lot of google
search and got to know have to implement
IDocHostUIHandler::ShowContextMenu interface for that purpose, but
never got a sample of the implementation with a WebBrowser in a dialog
form, Maybe I am in the wrong direction. Can anybody give me a hint?
Here is a pice of code that I have got, I don't know how to
incorporate it with the WebControl I have added in the dialog box.
Thanks you so much!!!

HRESULT IDocHostUIHandler::ShowContextMenu(
€€ DWORD dwID,
€€ POINT *ppt,
€€ IUnknown *pcmdtReserved,
€€ IDispatch *pdispReserved
€€);

5.Disable/Remove context menus in XP

is there anyway to disable the following context menus from windows explorer?

 - Convert to Macromedia Flash (.swf)
 - Convert to PDF with Macromedia Flashpaper
 - Convert to PDF and Email with Macromedia Flashpaper

 i get them when i right-click on most if not all file types

 tx in advance!

6. Disabling the context menu in swf

7. completely disable context menu

8. stop sites from disabling quality setting in context menu



Return to FLASH

 

Who is online

Users browsing this forum: No registered users and 1 guest