Play Sound
|
Top Previous Next |
![]() |
· | Due to a limitation in the Flash Player, sounds will only play in response to a Frame Event, or the Mouse Events Press, Release, Roll Over or Roll Out. Sounds cannot be played in response to the Mouse Events Drag Over, Drag Out or Release Outside
|
· | Due to a limitation in the Flash Player, MP3 sounds must have sample rates of 11025Hz, 22050Hz or 44100Hz
|
· | The Play Sound action will ALWAYS play, even inside a conditional statement. This means that you cannot use conditional statements (such as if, else if, etc) to trigger the Play Sound action, because it will play regardless of the conditions. To get around this limitation, you can put a gotoAndPlay event inside the Conditional statement, and send the timeline to a frame that contains the Play Sound action (either inside a sprite, a level, or the _root).
|
![]() |
· | Imported sound properties: displays the settings used on importing the sound file
|
· | Preload sound: specifies when the sound is defined in the .swf file. See the discussion on the Object page of the Export Panel for more information
|
· | Export settings: displays the settings used when the Movie is exported:
|
· | Compression: specifies the sound compression method. The available options are None, ADPCM and MP3
|
· | Channels: specifies whether the sound will play in Mono or Stereo
|
· | Sample Rate: specifies the sample rate for the sound file. The available options are 5.5, 11, 22 and 44kHz
|
· | Use LAME MP3 encoder: available when using MP3 compression. This option makes SWiSHmax use LAME MP3 encoder to compress the sound instead of using Windows' MP3 CODEC
|
|
Note: There is an option to 'Always use the LAMEencoder to encode MP3 sound' in the Tools | Preferences dialog box
|
|
· | Sample Bits: available when using uncompressed sound, it defines the bits used for each sample. Higher settings will create better quality sound, though larger size files
|
· | ADPCM Bits: available when using ADPCM compression, it defines the bits used for each sample. Higher settings will create better quality sound, though larger size files
|
· | Play: plays the sound with the current setting. The 'Play' button also updates the number of bytes for the sound file, as shown under the 'Stop' button
|
· | Stop: stops the currently playing sound. This is useful for a long sound, or a sound with a large number of loops
|
![]() |
· | Don't play sound if it is already playing: lets you stop a sound being triggered multiple times
|
· | Sound effect: specifies simple sound Effects, including fading in or out and panning effects
|
· | Loop sound: specifies how many times the sound will be played. In the example above, the sound called "88A.mp3" is played 1 time. Due to a limitation in the Flash Player, there is no infinite loop option. If you want your sound to loop for a very long time, enter a large number, such as 50,000
|
· | Volume: specifies the volume of the sound for playback as a percentage of the original volume
|
· | Fade in first loop: fades in the first loop played for the sounds file
|
· | Fade out last loop: fades out the last loop played for the sound file
|
· | Play: plays the sound with the current setting. The 'Play' button also updates the number of bytes for the sound file, as shown under the 'Stop' button
|
· | Stop: stops the sound currently playing. This is useful for a long sound, or a sound with a large number of loops
|
![]() |