بیشترلیست موضوعات • 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.
توضیحاتافزودن یادداشت جدید
Lesson 8. Using Conditional Logic
Every day we're confronted with all kinds of situations, large and small, that require us to make decisions about what actions we'll take. Although we may not be doing it consciously, we're constantly saying to ourselves, "If this is the case, I need to do that." If it's hot, wear shorts; if it's rainy, wear pants; and so on. This process of taking different actions based on current conditions (circumstances) is known as conditional logic, and it's something we all apply naturally. A successful rocket launch demands perfect conditions. This lesson's project will emulate a launch to demonstrate some of the principles and techniques used in conditional logic.Conditional logic is a critical component of interactivity. It allows you to program your project to react intelligentlyto the movement or position of the mouse, to the current day of the week, to many other dynamic conditions that exist as your movie plays. By employing conditional logic, you transform simple linear presentations and animations into dynamic projects that offer a unique experience each time they're viewed.In this lesson, we'll introduce you to some of the ways in which you can use conditional logic to bring about graphical changes in your movies based on varying conditions.WHAT YOU WILL LEARNIn this lesson, you will:Learn how to use if, if/else, and if/else if statements to control the flow of a scriptExplore the various operators used in conditional logicScript a project to react to various conditionsCreate a scripted boundary to restrict an object's movementTurn a script on and off using conditional logicProgram a project to react to user interactionLearn how to detect and react to object collisions APPROXIMATE TIMEThis lesson takes approximately one hour to complete.LESSON filesStarting File:Lesson08/Assets/rocketLaunch1.flaCompleted Project:rocketLaunch6.fla