Determining Conditions
Your project may contain numerous conditions you can use to control the way your script works or interacts with the user. Although a condition can take many forms, at its core it represents a circumstance that is either true or false. Conditional statements look for common conditions like these:One object comes into contact with another objectSomething is on or offA movie clip's position, size, or other property is greater than, less than, or equal to another valueThe user has a specific interaction with the mouse or keyboardText or numeric values are greater than, less than, or equal to another valueAny combination of the conditions above
• Table of ContentsMacromedia® Flash MX 2004 ActionScript: Training from the SourceBy
Derek Franklin, Jobe Makar Publisher: Peachpit PressPub Date: November 19, 2003ISBN: 0-321-21343-2Pages: 636
Sure, you can use Flash MX 2004 without being a master programmer, but as any Flash developer worth his or her salt will tell you, you''''re not tapping all of its power unless you''''re taking advantage of its scripting language "ActionScript 2.0" which offers a more robust programming model and better object-oriented programming support than ever before. Here to take the fear factor out of learning it are Flash veterans and best-selling authors Derek Franklin and Jobe Makar, who demonstrate that scripting is an instinctual process you already know by translating real-life activities into ActionScript scripts. In these pages, you''''ll find methodologies and techniques for building over 40 real-life Flash ActionScript projects, including sample games, applications, Web sites, and more. New in this edition are coverage of ActionScript 2.0, Web services, Components, Printing, Video, and more. On the companion CD, you''''ll find all the project files and images you need to complete each project.