Pages about Sound in your help-site. To know about important general concepts pertaining to Sound, Iinformation on how Sound works in Flash. Please pay special attention to SYNC modes: Event, Start and Stream*
What is an mp3 file, how to edit sound and compress it as an mp3 with Audacity, and how to compress into mp3 format with Itunes, Remember that your sound should be compressed as an mp3 before you import it to flash. If you want to find free sound effect files, to use as a background sound, or as an interactive sound inside your button, Consult my Flash help-website for information on how to use flashkit and basic sound information.http://soma.sbcc.edu/users/Ajarabo/F_online/sounds_over_web.htm
|
Video links My video-tutorial on how to build a simple linear slideshow using your sample-file: http://soma.sbcc.edu/users/ajarabo/F_online/A_MOODLE_FILES/Training_movies/linear_slideshow.mov My video-tutorial on how to build a slideshow with expanded functionality. My video-tutorial on how to target a movieclip with content to build a roll-over gallery. Defining settings for your swf, introduction. http://www.lynda.com/home/Player.aspx?lpk4=64915&playChapter=False If you liked the little keyboard experiment in the movie last module you can optimize the code with this movie, that explains how to use a conditional statement in flash. Notice that the sample file "Slideshow_extracode.fla" uses conditionals to optimize the code of the slideshow. |
Making a simple slide-show To build a Classic Slide-show , you need to have your content in a layer: In this case I have 2 layers for content, one with colored rectangles (slide), another with non-square artwork (ballerina). It is a good practize to make a mask over all the content, this way all the slides will be exactly the same size (MASK). Make sure you use an upper ACTION layer, where you will place the frame actions and the programming for the button. I have made a layer for the numbers. This helps the user when you organice your content in this linear fashion. Dedicate one layer for the back button, and a different one for the next button.
|
|||
The methods to use for a classic slideshow are: nextFrame(); prevFrame(); This really means "go to the next frame and Stop", or "go to the previous frame and Stop". You don't need to enter ANYTHING as a function parameter (no number in the parenthesis, Flash already knows where to go!). |
|||
All the code can get attached, in this simple case to the first keyframe in the ACTIONS layer. Remember to name the next and back buttons' instances in the Properties panel. |
|||
About using using Sound in Flash To use a sound in Flash you first need to import it into your project. It is better to import the sound to the Library. You can import aiff or wav files (those are uncompressed audio file-formats), but then you will have to deal with a big FLA file.
|
|||
Set mp3 compression settings for the swf file inside Flash
Flash can compress into mp3-format when you export the file into swf, but your fla project will still contain the big un-compressed file that you imported to the Library. Sometimes you will produce a very high quality mp3 that you set to higher recompression when exported to swf. You can also set audio recompression for wav or aiff files that you might be using in your project here. Remember that a stereo file is basically a double file, with a left channel and a right channel. Unless you really need that high-quality, it is still common policy nowadays to compress audio files into mono, to make the file smaller (half size!). |
|||
|
|||
Compressing sound in Audacity You can use the free software called Audacity to compress a file into mp3. It will not ask you for mp3 settings when you export to mp3. |
|||
Bit rate: Dynamic range describes the ratio of the softest sound to the loudest sound in a musical instrument or piece of electronic equipment. This ratio is measured in decibels (abbreviated as dB) units.
Songs with differnt instruments should be keps at a higher bit-rate. You might have to compress it 2 or 3 different ways and then listen to the diference.
Adjusting the bit-rate in sound can be compared to reducing the color-palette when you compress a gif graphic. A logo, originally with very few colors can handle the compression well. In the same way, a sound with a natural narrow dynamic reange (not too much variation) will accept this type of compression without much aparent loss of quality. |
|||
OPTIMIZING FILE FOR STREAMING: Improving rendering performance with bitmap caching Runtime bitmap caching lets you optimize playback performance by specifying that a static movie clip (for example, a background image) or button symbol be cached as a bitmap at runtime. By default, Flash Player redraws each vector item on the Stage in every frame. Caching a movie clip or button symbol as a bitmap prevents Flash Player from having to continually redraw the item, because the image is a bitmap and its position on the Stage does not change. This provides a significant improvement in playback performance. For example, when you create an animation with a complex background, create a movie clip containing all the items included in the background. Then select Cache as Bitmap for the background movie clip in the Property inspector. During playback, the background is rendered as a bitmap stored at the current screen depth. Flash Player draws the bitmap on the Stage quickly and only once, letting the animation play faster and more smoothly. Without bitmap caching, the animation might play back too slowly. Bitmap caching lets you use a movie clip and freeze it in place automatically. If a region changes, vector data updates the bitmap cache. This process minimizes the number of redraws that Flash Player must perform, and provides smoother, faster playback performance. Only use runtime bitmap caching on static, complex movie clips in which the position, but not the content, of the movie clip changes on each frame in an animation. The playback or runtime performance improvement from using runtime bitmap caching is only noticeable on complex-content movie clips. Runtime bitmap caching with simple movie clips does not enhance performance. |
|||