بیشترلیست موضوعات • 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.
توضیحاتافزودن یادداشت جدید
Fixing Compile-Time Bugs
When you export or test a movie, Flash's compiler analyzes all the code in the project. If a syntactical error is found in the code (a curly brace is missing, a colon is used instead of a semicolon at the end of a line of script, and so on), the Output panel automatically opens and displays a detailed listing of the error(s).These auto-generated error messages include the scene name, layer name, frame number, and line number of the faulty code. They also include a simple explanation about what's causing the error in addition to the faulty code. All this information helps you easily fix compile-time errors because you simply return to the authoring environment, locate the faulty code, and edit the syntax appropriately. When you receive a compile-time error(s) as a result of an attempt to export your movie to an SWF (either by directly exporting it or by using the Control > Test Movie command), Flash's compiler analyzes the code in the entire project (all timelines, scenes, and frames). As a result, the Output panel may display errors that exist in more than one location in the project. Although this information is helpful in certain circumstances, large projects can take several seconds to compile; therefore, constant testing can eat up substantial time. In addition, viewing multiple batches of errors at once in the Output panel can get confusing. The Check Syntax button on the Actions panel can help alleviate both problems. Clicking the Check Syntax button saves time because Flash simply analyzes the code without spending the extra processing time needed to compile the entire movie into a compact SWF. This technique helps eliminate confusion because only the code currently displayed in the Actions window is analyzed. Any errors detected can be edited without jumping around to different locations in your project.