Dynamic Sounds (AS3)

images

IT’S ALWAYS FUN when sound and graphics come together to create an engaging and dynamic experience. This example uses ActionScript 3.0 to assign sounds to invisible buttons. The sounds are triggered when you roll over individual drums and cymbals. Each sound file in the Library is exported for ActionScript, allowing you to assign each sound to a different keyboard command as well. As a result, the Flash movie converts your keyboard to a musical instrument.

This is just one of an infinite number of ways sound and ActionScript can be combined to create a fun, interactive experience.

 

1 The first step is to create an invisible ...

Get How to Cheat in Adobe Flash CS4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.