Showing posts with label key pressing. Show all posts
Showing posts with label key pressing. Show all posts

<key_press key_code="">

Allows the application to respond to keyboard keys pressed by the user.

The key_code attribute contains the Flash code for the specific key pressed. For a list of Flash key codes, visit here.

Child of: <key_presses>
Parent of: <press>, <release>

Example:

 <key_press key_code="66">
            <press>
                        <next_node>press</next_node>
                        ...
            </press>
            <release>
                        <next_node>release</next_node>
                        ...
            </release>
</key_press>

<key_presses>

Contains one or more <key_press key_code=""> tags to perform actions as a result of keyboard entries by the user.

Child of: <node name="">
Parent of: <key_press key_code="">
See also: <press>, <release>

Example:

<key_presses>
            <key_press key_code="a">
                        <press>
                                    <next_node>press</next_node>
                                    ...
                        </press>
                        <release>
                                    <next_node>release</next_node>
                                    ...
                        </release>
            </key_press>
             <key_press key_code="66">
                        <press persistent="FALSE">
                                    <next_node>press</next_node>
                                    ...
                        </press>
                        <release persistent="FALSE">
                                    <next_node>release</next_node>
                                    ...
                        </release>
            </key_press>
</key_presses>

Note: For a list of Flash key codes, visit here.

<press>

Defines one or more actions to take when the user presses a key on the keyboard.

If the optional attribute persistent="" is set to FALSE, the action(s) will only occur on the first press. If it is set to TRUE, they will occur until a new press is defined. persistent="" is TRUE by default.

See also: <release>

Example:

<press persistent="FALSE">
            <next_node>press</next_node>
            ...
</press>

<release>

Defines one or more actions to take when the user releases a pressed key on the keyboard.

If the optional attribute persistent="" is set to FALSE, the action(s) will only occur on the first release. If it is set to TRUE, they will occur until a new release is defined. persistent="" is TRUE by default.

See also: <press>

Example:

<release persistent="FALSE">
            <next_node>press</next_node>
            ...
</release>