Flash CS3 sound tutorial: Difference between revisions
Jump to navigation
Jump to search
m (using an external editor) |
m (using an external editor) |
||
Line 32: | Line 32: | ||
== Basics == | == Basics == | ||
=== Sound types === | |||
Flash can handle several sound formats: | |||
* AAC (Advanced Audio Coding): | |||
* AIFF (Audio Interchange File Format) | |||
* MP3 (Moving Pictures Expert Group Level-Layer-3 Audio) | |||
* AVI (Audio Video Interleave) | |||
* WAV (Waveform Audio Format) | |||
(Some formats may depend on whether quicktime is installed) | |||
== Import sounds == | |||
=== Background sounds === | === Background sounds === | ||
; To import (small) sound files | ; To import (small) sound files | ||
Line 48: | Line 60: | ||
* Configure it in the same panel | * Configure it in the same panel | ||
== Load sounds == | |||
<code><pre> | |||
var mySound:Sound= new Sound(); | |||
mySound.loadSound("track01.mp3" , true); | |||
mySound.onLoad = function() { | |||
mySound.start(); | |||
} | |||
</pre></code> | |||
== Links == | == Links == |
Revision as of 17:08, 11 September 2007
<pageby nominor="false" comments="false"/>
Overview
This is part of Flash CS3 tutorials. Daniel K. Schneider 18:13, 9 September 2007 (MEST).
- Learning goals
- Learn how to use sound with Flash 9 (CS3) components
- Learn a little bit of Action Script 3
- Prerequisites
- Flash CS3 desktop tutorial
- Flash drawing tutorial
- flash layers tutorial
- flash button tutorial
- Moving on
- The Flash article has a list of other tutorials.
- Flash Video component tutorial
- Quality
- This text should technical people get going and may not be good enough for self-learning beginners. It can be used as handout in a "hands-on" class. That is what Daniel K. Schneider made it for...
- Level
- It aims at beginners. More advanced features and tricks are not explained here.
- Learning materials
Grab the various *.fla files from here:
- http://tecfa.unige.ch/guides/flash/ex/sound-intro/ (not yet sorry)
Basics
Sound types
Flash can handle several sound formats:
- AAC (Advanced Audio Coding):
- AIFF (Audio Interchange File Format)
- MP3 (Moving Pictures Expert Group Level-Layer-3 Audio)
- AVI (Audio Video Interleave)
- WAV (Waveform Audio Format)
(Some formats may depend on whether quicktime is installed)
Import sounds
Background sounds
- To import (small) sound files
- File->Import->Import To library
Attaching sound to a frame
- Create a new layer
- You can attach sound to any frame via the properties panel
- Select a sound from the sound pull-down menu
- Configure it in the same panel
Load sounds
var mySound:Sound= new Sound();
mySound.loadSound("track01.mp3" , true);
mySound.onLoad = function() {
mySound.start();
}
Links
Sound textures to download
- SimplyTheBest.net - MP3 sounds. This is a nice site. Ads are not annoying.