Slide.defaultkeydownhandler - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following code, attached to a button on the root presentation slide, advances the slide
presentation to the next slide each time the button is clicked.
// Attached to button instance contained by presentation slide:
on(press) {
_parent.currentSlide.gotoNextSlide();
}
See also
Slide.gotoNextSlide()

Slide.defaultKeydownHandler

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
mySlide.defaultKeyDownHandler = function (eventObj) {
// Your code here.
}
Parameters
An event object with the following properties:
eventObj
A string indicating the type of event. Possible values are
type
An integer that represents the ASCII value of the last key pressed; corresponds to
ascii
the value returned by
An integer that represents the key code of the last key pressed; corresponds to the
code
value returned by
A Boolean value indicating if the Shift key is currently being pressed (
shiftKey
or not (
).
false
A Boolean value indicating if the Control key is currently being pressed (
ctrlKey
or not (
).
false
Returns
Nothing.
1148
Slide class (Flash Professional only)
Key.getAscii()
.
Key.getCode()
.
and
"keyUp"
"keyDown"
true
true
.
)
)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents