EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Capmidi Property; Capmms Property

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Global Properties 99
Example
If the device can play MFi sound data, the following example sets
canMFi to 1:
canMFi = _capMFi;
if (canMFi == 1) {
// send movieclip buttons to frame with buttons that trigger events
sounds
tellTarget("buttons") {
gotoAndPlay(2);
}
}
_capMIDI property
_capMIDI
Deprecated since Flash Lite Player 2.0. This action was deprecated in favor of the
System.capabilities.hasMIDI property.
Numeric variable; indicates whether the device can play sound data in the Musical Instrument
Digital Interface (MIDI) audio format. If so, this variable is defined and has a value of 1; if
not, this variable is undefined.
Availability: ActionScript 1.0; Flash Lite 1.1
Example
If the device can play MIDI sound data, the following example sets
_capMIDI to 1:
canMIDI = _capMIDI;
if (canMIDI == 1) {
// send movieclip buttons to frame with buttons that trigger events
sounds
tellTarget("buttons") {
gotoAndPlay(2);
}
}
See also
capabilities (System.capabilities)
_capMMS property
_capMMS

Table of Contents

Related product manuals