MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 704

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

A Boolean value indicating if the Shift key is currently being pressed (
shiftKey
(
).
false
A Boolean value indicating if the Control key is currently being pressed (
ctrlKey
not (
).
false
Returns
Nothing.
Description
Callback handler; 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
Slide.autoKeyNav
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 navigation
on(load)
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
704
Chapter 6: Components Dictionary
.
) or not
true
) or
true

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

This manual is also suitable for:

Flash mx

Table of Contents