Copy link to clipboard
Copied
I'm volunteering my time to teach individuals with disabilities to type and how to use office. However, when it came time to teach them office I found out that they do not know the basic keyboard commands, how to highlight text, or how to single left-click, double left-click, or right-click. I've used Flash before to create websites and other basic apps but I'm not good with Action Scripting and I know that what I want to teach will require a lot of Action Scripting. Could someone please help me figure this out? I would really appreciate it!!!
There are a bunch of examples in the AS3 docs - I'd start there:
MouseEvent - Adobe ActionScript® 3 (AS3 ) API Reference
Copy link to clipboard
Copied
There are a bunch of examples in the AS3 docs - I'd start there:
MouseEvent - Adobe ActionScript® 3 (AS3 ) API Reference
Copy link to clipboard
Copied
Here is the help document for mouse events:
MouseEvent - Adobe ActionScript® 3 (AS3 ) API Reference
You can see that you can listen for CLICK for left mouse click, RIGHT_CLICK for right mouse click, and for DOUBLE_CLICK.
One catch is that to read doubleclicks you have to set the doubleClickEnabled = true;
The bottom of the page includes example code.
Copy link to clipboard
Copied
Thank you for the information for mouse click events but what about highlighting text and using keyboard commands such as Ctrl-C to copy and then CTRL-V for pasting?
Copy link to clipboard
Copied
Adobe ActionScript 3.0 * Selecting and manipulating text
I'm not sure what you're expecting regarding Ctrl-C and Ctrl-V. Those are physical, off-screen actions.
Copy link to clipboard
Copied
Here is the help for reading keyboard events:
KeyboardEvent - Adobe ActionScript® 3 (AS3 ) API Reference
You can see that you can tell what key is pressed, and whether the command or control key is pressed. It's not trivial to take care of all possible user actions.