Adobe® Flash® CS3 has come a long way from its vector animation roots and has improved significantly with ActionScript 3.0. It’s a more powerful language than ever. The really neat thing about ActionScript is it is relatively accessible for navigational programming of the sort used in presentations, banner ads, and other interactive projects you may undertake.
Here’s a recap of our recommendations:
Note: ActionScript has matured to the point where there are a lot of people making a very good living from writing ActionScript code. If code isn’t your thing, learn it anyway. The odds are almost 100% that you will eventually work with an ActionScript programmer, and being able to speak the language will make your design efforts even smoother.
With the advice out of the way, let’s look at two practical uses for ActionScript by applying it to two very popular requests on the Adobe support forums. People often want to know how to pause the main timeline for a certain amount of time before moving on, and they often want to know how to loop a movie a certain number of times before stopping at the end. Let’s wire them up.
To complete this article, you will need the following software and files:
timeline_samples.zip (ZIP, 9K)
Some experience coding with ActionScript
Tom Green is a professor of interactive multimedia at the Humber Institute of Technology and Advanced Learning in Toronto, Ontario. He is the author of several best-selling books in the area of Flash and Flash technologies. His latest book is Foundation Flash CS4 for Designers, coauthored with David Stiller, and he updated Foundation Flash CS3 Video with Adam Thomas. Tom has completed DVD videos for Lynda.com and Adobe Systems, and is a partner at Community MX and a regular contributor to Digital-Web.com and Layersmagazine.com. He is also an active member of the Adobe Community Experts Group, speaking at conferences and seminars around the world and contributing regularly to the Adobe Developer Connection in the areas of Flash authoring and video technologies.
David Stiller is an independent contractor whose portfolio includes multimedia programming and design for NASA, the US Department of Transportation, Nickelodeon, MTV, Wendy's, Adobe, and dozens of clients across the United States and Canada. He likes anaglyph 3D photography, finely crafted wooden game boards, Library of Congress field recordings, and Turkish coffee. David is self-taught and gets a kick out of sharing "aha!" moments with others through consultation, mentoring, and regular contributions to the Adobe Flash and ActionScript forums. He is a resident tutorial author at CommunityMX and co-author of Foundation Flash CS3 for Designers (friends of ED), ActionScript 3.0 Quick Reference Guide (O'Reilly), and Foundation Flash CS4 for Designers (friends of ED). David lives in Virginia with his amazing wife, Dawn, and his beguiling daughter, Meridian.
Excerpted from "Foundation Flash CS3 for Designers" by Tom Green and David Stiller. © 2007 friends of ED, a division of Elsevier. To purchase this book, please visit www.friendsofed.com