|
|||
|
Hello,
I am working on with an old SWF and I do not have to source code (.fla) for it. What I am trying to accomplish is send a left or right arrow key process when the user click either the left or right mouse button. Here is the code I am working with: var wnd = FlashPlayer.window; wnd.onMessage = function (message, wparam, lparam){ if (message == /*WM_LBUTTONUP*/0x202){ //send right arrow key press message to Flash Player Application.sendMessage(FlashPlayer.window, /*WM_CHAR*/0x102, 37, 0); } else if (message == /*WM_RBUTTONUP*/0x205){ //send left arrow key press message to Flash Player Application.sendMessage(FlashPlayer.window, /*WM_CHAR*/0x102, 37, 0); } }; My code is is "trapping" the left and right mouse clicks, but it is not sending the arrow key press messages to the Flash Player. Please let me know how to fix my code. Thank you. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|