Dynamic Sounds (AS3)
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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.