|
|
 |
DESCRIPTION |
| |
 |
|
|
You need to upgrade your Flash Player
This is replaced by the Flash content.
|
|
|
Key
Actions component is HELPER COMPONENT.
Component is made to help to control and use basic Key
events. All parameters of Key Actions component can be controlled thru Property Inspector, or by
Action Script. For more information's on how to control or
extend component with Action Script
see Helper Components AS Help Files.
|
|
PRICE: $2.49 |
| |
|
|
| |
| PROPERTY
INSPECTOR OPTIONS |
These options are available in
property inspector.
| Properties |
Values |
Description |
| |
|
|
|
On
which key functions will be triggered. |
| 2.
On Key Press Function |
_root.onPressFunction(); |
Path
to function that will be executed when key is
pressed. |
| 2.
On Key Release Function |
_root.onReleaseFunction(); |
Path
to function that will be executed when key is
released. |
| 3.
Enabled |
true |
Enables/disables
component instance. |
| 4.
KA ICON VISIBLE |
false |
Shows/hides
component instance icon. |
onKeyPressFunction and
onKeyReleaseFunction
You can create function in the
"_root" timeline that will bee called by "onKeyDown"
or "onKeyUp" actions:
function onKeyDown(action, code,
capsLockToggled, numLockToggled, scrollLockToggled, instanceName,
path){
trace(action+"
"+code+" "+capsLockToggled+" "+numLockToggled+"
"+scrollLockToggled+" "+instanceName+"
"+path);
}
Than, when you press or release some key, function "onKeyDown"
will trace message:
Action that was performed ("Press" or
"Release").
Code of key that was pressed or released.
If Caps Lock is toggled (true or false).
If Num Lock is toggled (true or false) and
If Scroll Lock is toggled (true or false).
It will also trace instance name and path to instance.