Chapter 8. Creating ActionScript Objects
Creating a digital clock
</objective> <objective>Adding background music
</objective> <objective>Adding a preloader
</objective> <objective>Creating an ActionScript mask
</objective> <objective>Creating a drag-and-drop element
</objective> </feature>You can use ActionScript to create some very cool and very useful objects for your Flash Web site. If your visitors want to know how much time they’ve been wiling away at your site, you can add a digital clock so they can keep track of the time. If you want to keep your viewers entertained, you can add background music, complete with a stereo controller. If you want Flash eye candy, the sky is the limit. You can use ActionScript to mask objects and to create drag-and-drop elements. So if you’re ready to add some cool and useful stuff to your Flash Web site, hang on; in this chapter I show you how.
To cut some corners, you can download the code and other goodies I use in this chapter from this book’s Web site: www.dummies.com/go/flashwebsites.
Telling Time with a Digital Clock
You can add the time and date to your Flash Web designs by using ActionScript. You can use the various methods of the Date
object to retrieve the date and time from the viewer’s computer. The information retrieved by the Date
object changes as the computer updates the time. In order ...
Get Building Flash® Web Sites For Dummies® 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.