Available for download at http://qualitylessons.net/downloads.html
Flash Tutorial: Play Pause Toggle Button with actionscript 3; cs5 / cs5.5
Playing sounds using ActionScript 3.0 is not as simple as we hoped it to be as it requires using more than one class to perform even the simplest of tasks relating to sound such as pausing or changing the sound volume. This tutorial will teach you all the basics you need to learn how to start playing local sound.
Sounds in ActionScript 3.0 are manipulated through the collaborative work of several classes together. This is a much more complex structure than previous versions of ActionScript, but it is argued that this format will provide you with greater control and the ability to micro manage sounds. Here are the relevant classes related to sounds:
Sound Class - This is the main class in which a sound will actually reside. This class is the starting point of any sound related program and is used to start playing a sound.
SoundChannel Class - A sound can be played through a sound channel which provides additional controls over a sound object, the most basic of these additional controls is the ability to stop the playback of a sound.
Stopping A Sound
In addition the ability to play a sound, you will obviously also want to know how to stop your sound after you play it. The Sound Class does not have a method for stopping a sound. The SoundChannel Class must be used to perform that task. A SoundChannel is a class that is used to hold a raw sound object and then manipulate it using the methods and properties of the SoundChannel Class. The methods and properties you should be aware of are:
.stop() - this method stops the sound playing through the channel.
.position - this property is used to retrieve the current playback position of the sound playing through the channel.
Mohit Manuja
http://qualitylessons.net
mohitsmail@yahoo.com
+91-9022995952
Trainer for Adobe Products Dreamweaver and Flash ( cs 5 / cs 5.5 ), round the Globe
Nesta página do site você pode assistir ao vídeo on-line Flash Tutorial: Play Pause Toggle Button with actionscript 3; cs5 / cs5.5 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Mohit Manuja Carbstrong 09 Agosto 2011, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 33,203 vezes e gostou 84 espectadores. Boa visualização!