Description
Callback function; lets you override the default keyboard navigation with a custom keyboard
handler that you create. For example, instead of having the Left and Right Arrow keys
navigate to the previous and next slides in a presentation, respectively, you could have the Up
and Down Arrow keys perform those functions. For a discussion of the default keyboard
handling behavior, see
Example
In that example, the default keyboard handling is altered for child slides of the slide to which
the
handler is attached. This handler uses the Up and Down Arrow keys for
on(load)
navigation instead of the Left and Right Arrow keys.
on (load) {
this.defaultKeyDownHandler = function(eventObj:Object) {
switch (eventObj.code) {
case Key.DOWN :
this.currentSlide.gotoNextSlide();
break;
case Key.UP :
this.currentSlide.gotoPreviousSlide();
break;
default :
break;
}
};
}
See also
Slide.autoKeyNav
Slide.firstSlide
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
mySlide.firstSlide
Description
Property (read-only); returns the first child slide of
.
Slide.autoKeyNav
that has no child slides.
mySlide
Slide.firstSlide
1149