بیشترلیست موضوعات • 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 10. Scripting UI Components
Look at nearly any computer program, whether it's used for creating and managing a database or drawing illustrations, and you'll notice a number of interface elements common to those applications. You'll see similarities in buttons, scroll bars, drop-down boxes, sliders, and so on. These elements can be found in most applications because they are accepted and time-tested tools for allowing the user to interact with and receive information from the interface.In most application development environments, such as Visual Studio .NET, the interface elements are pre-assembled, meaning that developers can simply drag an element such as a slider from a palette, drop it into the application being developed, and add some code to make the new element do something useful. Using components, we'll create a fairly sophisticated URL manager that dynamically responds to user interaction.Of course, developers could create their own interface elements from scratch; however, many of these prebuilt elements are not only highly functional, but contain a number of inherently powerful capabilities that can easily be accessed with a relatively minimal amount of programming.The Flash authoring environment comes with its own prebuilt interface elements, called components. There are buttons, sliders, alert boxes, scrollable windows, menus, checkboxes, and more. Components allow you to quickly and easily drag and drop complex interactive elements into your project. After you have the interface elements where you want them, you can use ActionScript to control the elements in a number of useful ways.In this lesson, we'll use components extensively to create an application with a highly interactive user interface. Creating this application from scratch would take many days. Using components and ActionScript, however, you can put together the application in a fraction of that time.WHAT YOU WILL LEARNIn this lesson, you will:Learn how to set and get component property valuesUse component events to trigger scriptsUse component methods to insert data dynamicallyWork with the FocusManager component to make a more usable applicationStyle component instances individually and globally using ActionScript APPROXIMATE TIMEThis lesson takes approximately two hours to complete.LESSON filesStarting File:Lesson10/Assets/Components1.flaCompleted Project:Components6.fla