| So far in the tutorial series, we have created the cover and first page of our Kwik book app. We have added navigational buttons to the first page in preparation for using this page as a template for other pages. Now, we are ready to add some audio to the template.|
As we mentioned earlier, we will have a simple linear animation that will emulate a page turn and plays when a page loads. Before we get started building this animation, we will add a small audio file that will also play every time a page loads. This is a simple 6 kb page flip sound .mp3 file.
There are two main types of audio that you might want to add to your book app. The first is the narrative audio for the "Read to Me" option. The other type includes sound effects and background music. Our paper sound audio falls into the second category.
Short and Streaming Audio
A mobile device loads an audio file in two ways. A short audio file can be loaded in to memory immediately when the page is displayed. This works best for small sized audio files. For larger files, such as narrative text, it is best to stream these files. This will allow the audio file to begin playing before the entire file is loaded into memory. Streaming audio prevents a noticeable delay between when the page loads and the audio begins.
Let's walk through adding our paper sound audio file into the template.
Join us in the Flash forum. | Join us in the Digital Art and Design forum.