Everyday Computing Advanced Computing The Internet At Home Health, Mind & Body Making & Managing Money Sports & Leisure Travel Beyond The Classroom
Building Web Sites
Doing Business Online
Graphics & Animation
Using the Internet
Moms, Dads, and Grads -- Win $500!
Flash 5 For Dummies
Lights, Camera, ActionScript
Adapted From: Flash 5 For Dummies

Flash 5 ActionScript has evolved to contain features and syntax that closely resemble JavaScript, a programming language often used for Web pages. Many of the old features have been retained to maintain compatibility with previous versions of Flash. In addition, ActionScript omits some of JavaScript's features where they are irrelevant or can cause conflicts with previous versions of Flash.

ActionScript now uses, by default, a dot syntax. Dots (periods) separate objects from their properties or the actions you're applying to the objects (called methods). Another use for dots is to show the path to a movie clip or movie. Earlier versions of ActionScript used a slash syntax (which you can still use in Flash 5) to separate the parts of an expression. The new syntax also uses curly braces ({ and }) to separate complete statements from each other.

When specifying a target for the Tell Target or Load Movie action, you can choose to use either slash or dot syntax in the Insert Target Path dialog box. Many Flash users prefer the dot syntax because it's more compatible with the new JavaScript style of ActionScript. If you're already familiar with JavaScript, you should become comfortable with the dot syntax quickly.


To find out how to have Dummies eTips delivered to your e-mail inbox every week, visit the Dummies eTip Sign-Up Page.
Related Articles
Getting Acquainted with Flash 5
Creating Animation in Flash
Optimizing Movies for Speed
Printing Your Flash 5 Movie
Drawing Precisely in Flash
Related Titles
Adobe Creative Suite 3 Design Premium All-in-One Desk Reference For Dummies
Adobe Creative Suite 3 Web Premium All-in-One Desk Reference For Dummies
Creating Web Graphics For Dummies
Macromedia Flash MX 2004 For Dummies 
Macromedia Studio MX 2004 All-in-One Desk Reference For Dummies