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 CS3 for Designers, coauthored with David Stiller, and he recently completed an updated version of Foundation Flash CS3 Video, which will be available early in 2008. Tom has completed DVD videos for Lynda.com and Adobe Systems, and is a partner at Community MX and regular contributor to Digital-Web.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 and video technologies.
David is a career multimedia programmer/designer whose portfolio includes NASA, Adobe, and major US automotive and boat manufacturers. 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 author at Community MX, a web development training site geared toward Adobe products. 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