Flash Professional CS5 introduces the Code Snippets panel (Window > Code Snippets), which provides a library of prebuilt code samples for adding interactivity to your projects. You can, for example, use the snippets to code elements like timeline navigation, actions, animation, audio and video, as well as event handlers.