Windows Develop Bookmark and Share   
 index > Windows Forms General > how i use a mouse click events in flash player AxShockwaveFlash
 

how i use a mouse click events in flash player AxShockwaveFlash

hi ...

i am using a flash player AxShockwaveFlash in that how can i give a mouse click events..

any body help me.... is there mouse events for that...

by sankar....

Sankar_1984  Friday, June 01, 2007 2:16 PM
Sub-Class the AxShockwaveFlash class, override its WndProc method to handle the left mouse button down event, I write a sample for you:

Code Snippet

class myAxShockwaveFlash: AxShockwaveFlashObjects.AxShockwaveFlash

private const int WM_LBUTTONDOWN = 0x0201;

protected override void WndProc(ref Message m)

switch (m.Msg)

case WM_LBUTTONDOWN:

MessageBox.Show("click!");

break;

base.WndProc(ref m);

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1374062&SiteID=1

Zhi-Xin Ye  Monday, June 04, 2007 1:49 PM
Sub-Class the AxShockwaveFlash class, override its WndProc method to handle the left mouse button down event, I write a sample for you:

Code Snippet

class myAxShockwaveFlash: AxShockwaveFlashObjects.AxShockwaveFlash

private const int WM_LBUTTONDOWN = 0x0201;

protected override void WndProc(ref Message m)

switch (m.Msg)

case WM_LBUTTONDOWN:

MessageBox.Show("click!");

break;

base.WndProc(ref m);

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1374062&SiteID=1

Zhi-Xin Ye  Monday, June 04, 2007 1:49 PM

Thanks for ur help... its very useful to me

Sankar_1984  Tuesday, June 05, 2007 3:17 PM
Thanks - helped plenty. Can raise new events from the subclass ...
nonnb  Sunday, July 15, 2007 6:38 AM
Hi,

How to use this sub-class for mouse click ?

S. Ramkumar
Smiley
Ramkumar_TPS  Friday, September 11, 2009 11:12 AM

You can use google to search for other answers

Custom Search

More Threads

• treeview control find third childnodes
• make common vedio with existing clips using c#
• Custmozied File Open/Save Dialog Box-- is it possible.
• Pocket PC Emulator and connections to webservices...
• Tale of Woe - Convert KeyCode to Char - Please Help
• use of .vshost.exe
• Newbie desktop application question
• Clearing the Graphics Buffer
• TabControl UseMnemonic Problem
• Cannot inherit from ToolStripControlHost