Sound
Event sound
The commonest use for sounds – is Event.
- Create a new file and add one simple button to it.
- Open button for editing and add one more layer to it. Call this layer lrSound
- Insert keyframes in Over and Down states
- Choose Sounds from Common Library and drag them to Over and Down states respectively
- Place cursor to one of those two State frames and check Property inspector. You will see name of the sound in Sound combobox..
- Make sure that Sync property of the sound is specified as Event and Loop as 0
Test your movie. Button should respond with sound on mouse hovering and clicking.
Event option occurs when timeline enters the frame where sound is located. If you have a long sound – it’s possible to click the button several times before this sound still playing. In this situation several instances of sound will be created and they will mix together. If you change Event Sync to Start – every time you click button it will hush previously played sounds of the same frame. Stop Sync will stop the sound if it’s played by other frames. For example if you have a long sound playing on the main timeline you may assign this sound to be stopped when button is clicked.
Loop value may be changed to play the sound the designated number of times.