Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Specific Language Elements > Capabilities > _capMIDI | |||
Flash Lite 1.1.
_capMIDI
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.
If the device can play MIDI sound data, the following example sets canMidi to 1:
canMIDI = _capMIDI;
if (canMIDI == 1) {
// send movieclip buttons to frame with buttons that trigger events sounds
tellTarget("buttons") {
gotoAndPlay(2);
}
}
|
|
|
|