Using Native Flash Sounds - MACROMEDIA FLASH 8-DEVELOPING FLASH LITE 2.X Develop Manual

Developing flash lite 2.x applications
Hide thumbs Also See for FLASH 8-DEVELOPING FLASH LITE 2.X:
Table of Contents

Advertisement

Using native Flash sounds

In addition to supporting device sound, Flash Lite 2.0 also supports standard, or native, Flash
sounds. Essentially, a native sound is a sound in any format that the Flash authoring tool
recognizes. Native sound in Flash Lite can play either as event sound or synchronized sound
(see
"Using device sound (Flash Professional only)" on page
The general workflow for using native sounds in your Flash Lite applications is the same as for
Flash desktop applications, with the following exceptions:
Flash Lite does not support playing external MP3 files natively. However, if the device can
play MP3 audio, you can load external MP3 files in your application. For more
information, see
"Playing external device sounds" on page
Flash Lite does not support the Speech audio compression option.
For more information about working with native sound in Flash, see the following topics in
Using Flash:
"Importing sounds" in Using Flash.
"Adding sounds to a document" in Using Flash.
"Starting and stopping sounds at keyframes" in Using Flash.
"Compressing sounds for export" in Using Flash.
Using the 8kHz sampling rate feature
By default, the Flash authoring tool exports native audio at sampling rates of 5, 11, 22, or
44 kilohertz (kHz). However, many devices don't support playback of audio data at these
sampling rates. For example, the Nokia Series 60 devices support only 8 and 16 kHz. In
previous versions of Flash Lite, the player resampled the audio at runtime to 8 kHz before
calling the device's native sound application programming interfaces (APIs) to play the sound.
This resampling required additional processing time and memory consumption.
In Flash Professional 8, you can choose to have the authoring tool resample your application's
native audio at 8 kHz during the SWF file publishing process. You apply this setting to all
stream and event sounds in your application, or just to specific sounds in your document's
Library panel.
48).
53.

Using native Flash sounds

55

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents