Amazon.com: ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers (9780596526955): Joey Lott, Darron Schall, Keith Peters: Books
ActionScript 3.0 Cookbook and over one million other books are available for Amazon Kindle. Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Kindle Edition
 
   
More Buying Choices
Have one to sell? Sell yours here
ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers
 
 
Start reading ActionScript 3.0 Cookbook on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers [Paperback]

Joey Lott (Author), Darron Schall (Author), Keith Peters (Author)
3.8 out of 5 stars  See all reviews (35 customer reviews)

List Price: $39.99
Price: $26.39 & this item ships for FREE with Super Saver Shipping. Details
You Save: $13.60 (34%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Only 7 left in stock--order soon (more on the way).
Want it delivered Monday, February 20? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for students on millions of items. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $17.27  
Paperback $26.39  
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Book Description

November 30, 2011 0596526954 978-0596526955 1

Well before Ajax and Microsoft's Windows Presentation Foundation hit the scene, Macromedia offered the first method for building web pages with the responsiveness and functionality of desktop programs with its Flash-based "Rich Internet Applications". Now, new owner Adobe is taking Flash and its powerful capabilities beyond the Web and making it a full-fledged development environment.

Rather than focus on theory, the ActionScript 3.0 Cookbook concentrates on the practical application of ActionScript, with more than 300 solutions you can use to solve a wide range of common coding dilemmas. You'll find recipes that show you how to:

  • Detect the user's Flash Player version or their operating system
  • Build custom classes
  • Format dates and currency types
  • Work with strings
  • Build user interface components
  • Work with audio and video
  • Make remote procedure calls using Flash Remoting and web services
  • Load, send, and search XML data
  • And much, much more ...

Each code recipe presents the Problem, Solution, and Discussion of how you can use it in other ways or personalize it for your own needs, and why it works. You can quickly locate the recipe that most closely matches your situation and get the solution without reading the whole book to understand the underlying code. Solutions progress from short recipes for small problems to more complex scripts for thornier riddles, and the discussions offer a deeper analysis for resolving similar issues in the future, along with possible design choices and ramifications. You'll even learn how to link modular ActionScript pieces together to create rock-solid solutions for Flex 2 and Flash applications.

When you're not sure how ActionScript 3.0 works or how to approach a specific programming dilemma, you can simply pick up the book, flip to the relevant recipe(s), and quickly find the solution you're looking for.

Adobe Developer Library is a co-publishing partnership between O'Reilly Media and Adobe Systems, Inc. and is designed to produce the number one information resources for developers who use Adobe technologies. Created in 2006, the Adobe Developer Library is the official source for comprehensive learning solutions to help developers create expressive and interactive web applications that can reach virtually anyone on any platform. With top-notch books and innovative online resources covering the latest in rich Internet application development, the Adobe Developer Library offers expert training and in-depth resources, straight from the source.


Frequently Bought Together

ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers + Essential ActionScript 3.0 (Essential) + The ActionScript 3.0 Quick Reference Guide: For Developers and Designers Using Flash: For Developers and Designers Using Flash CS4 Professional (Adobe Developer Library)
Price For All Three: $79.72

Show availability and shipping details

Buy the selected items together


Editorial Reviews

About the Author

Joey Lott is the author of several O'Reilly books on Macromedia technology, including Flash 8 Cookbook, Programming Flash Communication Server, and the ActionScript Cookbook. He is also the author of Flash 8 ActionScript Bible (Wiley) and Advanced ActionScript with Design Patterns (Adobe Press, October 2006). Joey has been teaching Flash and ActionScript since 1999. His professional experience in the Internet industry includes co-founding RightSpring, Inc., as well as consulting for YourMobile/Premium Wireless Services (J2EE B2C application) and Ads.com (leading the development of a J2EE B2B application).

Darron Schall is an independent consultant specializing in the Flash Platform, with a Bachelor's Degree in Computer Science from Lehigh University. He has been using ActionScript since the early days and is a prominent voice in the Flash and Flex communities. He is actively involved in the Open Source Flash movement with projects ranging from software development tools to a Commodore 64 emulator. Darron has spoken at various conferences about ActionScript, and has contributed to books and magazines. You can find his Flash Platform related weblog at http://www.darronschall.com.

Keith Peters is a Flash developer in the Boston area. He has been working with Flash since 1999 and is currently a Senior Flash Developer at Brightcove (http://www.brightcove.com). Keith has been a contributing author to nine other books on Flash and ActionScript. His personal website, http://www.bit-101.com, features an active blog, over 700 open source Flash experiments, and lots of other random Flash-related stuff.


Product Details

  • Paperback: 592 pages
  • Publisher: O'Reilly Media; 1 edition (November 30, 2011)
  • Language: English
  • ISBN-10: 0596526954
  • ISBN-13: 978-0596526955
  • Product Dimensions: 9.2 x 7.1 x 1.1 inches
  • Shipping Weight: 3 pounds (View shipping rates and policies)
  • Average Customer Review: 3.8 out of 5 stars  See all reviews (35 customer reviews)
  • Amazon Best Sellers Rank: #59,810 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

35 Reviews
5 star:
 (16)
4 star:
 (6)
3 star:
 (5)
2 star:
 (6)
1 star:
 (2)
 
 
 
 
 
Average Customer Review
3.8 out of 5 stars (35 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

11 of 11 people found the following review helpful:
5.0 out of 5 stars Fast ramp up to Actionscript 3.0, April 11, 2007
This review is from: ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers (Paperback)
This book was exactly what I was looking for: a reference-style book to quickly look up how to do something specific with ActionScript 3. It is for generally experienced developers that already know what they want to do and just need to see how it's done in with AS3 in the classic cookbook style.

There is no coverage of Flex or Flex Builder (perfect!). This is also not a tutorial book so you may need to look elsewhere if that is what you need.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


7 of 7 people found the following review helpful:
4.0 out of 5 stars A Handy Reference for ActionScript Programmers, January 15, 2007
By 
Damian Taggart (Santa Fe, New Mexico) - See all my reviews
(REAL NAME)   
This review is from: ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers (Paperback)
Despite numerous typographical errors and several sections that reference outdated ActionScript 2 information, the ActionScript 3.0 Cookbook remains a very handy reference for developers who want quick, ready to implement solutions to common programming tasks and challenges.

This book is more of a desk reference for common tasks than an overall guide to the newest installment of Adobe's ECMA-based programming language. The sections devoted to the new features of ActionScript 3 are very useful and have thorough explanations with well documented code samples. I found the chapter on the new model for adding visual elements to a SWF via ActionScript using the Display List to be particularly helpful in my study of AS3.'

To sum up my thoughts on the ActionScript 3.0 Cookbook: Definitely a worth the cover price for experienced ActionScript developers but maybe not the ideal resource for those developers that are just learning programming for the Flash Platform.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


77 of 102 people found the following review helpful:
5.0 out of 5 stars A great addition to your ActionScript knowledge base, October 28, 2006
This review is from: ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers (Paperback)
This book is in the style of the classic O'Reilly Cookbook series format, in which each recipe presents the problem, the solution, and a discussion of the solution. Each section pretty much stands alone, although you should understand chapter one on the basics before moving on. The Discussion sections of each recipe offer a good analysis of how the solution works and different design choices and their various ramifications. Thus you get the best of both worlds - quick and easy access to the answers you want and deeper insights into the nature of both the problem and the solution. This book is helping me develop my understanding of ActionScript concepts by applying them in real situations and I highly recommend it.

All of the code examples in this book are based on ActionScript 3.0 and only compatible with products that support ActionScript 3.0. Flex 2.0 and Flash 9 allow you to author ActionScript 3.0 content. Flash Player 9 supports ActionScript 3.0. If you are using a product that does not support ActionScript 3.0, then the code in this book is not likely to work.

The following is the table of contents:

Chapter 1. ActionScript Basics
Recipe 1.1. Creating an ActionScript Project
Recipe 1.2. Customizing the Properties of an Application
Recipe 1.3. Where to Place ActionScript Code
Recipe 1.4. How to Trace a Message
Recipe 1.5. Handling Events
Recipe 1.6. Responding to Mouse and Key Events
Recipe 1.7. Using Mathematical Operators
Recipe 1.8. Checking Equality or Comparing Values
Recipe 1.9. Performing Actions Conditionally
Recipe 1.10. Performing Complex Conditional Testing
Recipe 1.11. Repeating an Operation Many Times
Recipe 1.12. Repeating a Task over Time
Recipe 1.13. Creating Reusable Code
Recipe 1.14. Generalizing a Method to Enhance Reusability
Recipe 1.15. Exiting a Method
Recipe 1.16. Obtaining the Result of a Method
Recipe 1.17. Handling Errors

Chapter 2. Custom Classes
Classes are absolutely essential to ActionScript 3.0. This is truer in ActionScript 3.0 than in any earlier release of the language. ActionScript 1.0 was essentially a procedural language with modest object-oriented features. ActionScript 2.0 formalized the object-oriented features and took a big step in the direction of a truly object-oriented language. However, ActionScript 3.0 shifts the core focus of ActionScript so that the basic building block is that of the class. If you are using ActionScript 3.0 with Flex, and the introduction of the minor exception of code being placed within mx_Script tags, all ActionScript code must appear within a class. This chapter discusses the fundamentals of writing custom classes in ActionScript 3.0.
Recipe 2.1. Creating a Custom Class
Recipe 2.2. Determining Where to Save a Class
Recipe 2.3. Creating Properties That Behave As Methods
Recipe 2.4. Creating Static Methods and Properties
Recipe 2.5. Creating Subclasses
Recipe 2.6. Implementing Subclass Versions of Superclass Methods
Recipe 2.7. Creating Constants
Recipe 2.8. Dispatching Events

Chapter 3. Runtime Environment
Flash Player 9 offers a relatively large amount of information about and control over the runtime environment. The flash.system.Capabilities class has many static methods that return information about the player and the computer on which it is running, such as the operating system, language, audio, and video capabilities. There are other classes such as flash.display.Stage and flash.system.Security that allow you to control other elements of the Player such as the right-click menu under Windows (Control-click on the Macintosh) and the Settings dialog box. The flash.display.Stage class also controls the scaling and alignment of the movie within the Player.
Recipe 3.1. Detecting the Player Version
Recipe 3.2. Detecting the Operating System
Recipe 3.3. Checking the Player Type
Recipe 3.4. Checking the System Language
Recipe 3.5. Detecting Display Settings
Recipe 3.6. Scaling the Movie
Recipe 3.7. Changing the Alignment
Recipe 3.8. Hiding the Flash Player's Menu Items
Recipe 3.9. Detecting the Device's Audio Capabilities
Recipe 3.10. Detecting the Device's Video Capabilities
Recipe 3.11. Prompting the User to Change Player Settings
Recipe 3.12. Dealing with System Security

Chapter 4. Numbers and Math
ActionScript 3.0 has three basic numeric types: number, int, and uint. number is for any floating-point numbers, whereas int and uint are for integers (whole numbers). The distinction between int and uint is that int is the set of negative and non-negative integers, while uint is the set of non-negative integers (unsigned integers). This chapter gives you examples of working with all types of numbers in ActionScript using a variety of mathematical applications.
Recipe 4.1. Representing Numbers in Different Bases
Recipe 4.2. Converting Between Different Number Systems
Recipe 4.3. Rounding Numbers
Recipe 4.4. Inserting Leading or Trailing Zeros or Spaces
Recipe 4.5. Formatting Numbers for Display Without a Mask
Recipe 4.6. Formatting Currency Amounts
Recipe 4.7. Generating a Random Number
Recipe 4.8. Simulating a Coin Toss
Recipe 4.9. Simulating Dice
Recipe 4.10. Simulating Playing Cards
Recipe 4.11. Generating a Unique Number
Recipe 4.12. Converting Angle Measurements
Recipe 4.13. Calculating the Distance Between Two Points
Recipe 4.14. Determining Points Along a Circle
Recipe 4.15. Converting Between Units of Measurement

Chapter 5. Arrays
In ActionScript, there are two kinds of arrays: integer-indexed and associative. Both array types group related data, but they use different means of accessing the data. The integer-indexed array uses integers as unique identifiers for each element in the array. Associative arrays use string keys to access each value. There's more about associative arrays in Recipe 5.15. This chapter will remind you of any good chapter in any book on arrays in any programming language.
Recipe 5.1. Adding Elements to the Start or End of an Array
Recipe 5.2. Looping Through an Array
Recipe 5.3. Searching for Matching Elements in an Array
Recipe 5.4. Removing Elements
Recipe 5.5. Inserting Elements in the Middle of an Array
Recipe 5.6. Converting a String to an Array
Recipe 5.7. Converting an Array to a String
Recipe 5.8. Creating a Separate Copy of an Array
Recipe 5.9. Storing Complex or Multidimensional Data
Recipe 5.10. Sorting or Reversing an Array
Recipe 5.11. Implementing a Custom Sort
Recipe 5.12. Randomizing the Elements of an Array
Recipe 5.13. Getting the Minimum or Maximum Element
Recipe 5.14. Comparing Arrays
Recipe 5.15. Creating an Associative Array
Recipe 5.16. Reading Elements of an Associative Array

Chapter 6. Display List
The rendering model for ActionScript 3.0 and Flash Player 9 is radically different than in previous versions. The new renderer is still hierarchical, but not as rigid, and aims to simplify and optimize the rendering process. The new rendering model centers on the display list concept and focuses on the classes available in the flash.display package. The display list is a hierarchy that contains all visible objects in the .swf movie. Any object not on the display list is not drawn by the renderer. Each .swf movie contains exactly one display list, which is comprised of three types of elements: the stage, display object container, and display objects. This chapter gives you practice working with this new model.
Recipe 6.1. Adding an Item to the Display List
Recipe 6.2. Removing an Item from the Display List
Recipe 6.3. Moving Objects Forward and Backward
Recipe 6.4. Creating Custom Visual Classes
Recipe 6.5. Creating Simple Buttons
Recipe 6.6. Loading External Images at Runtime
Recipe 6.7. Loading and Interacting with External Movies
Recipe 6.8. Creating Mouse Interactions
Recipe 6.9. Dragging and Dropping Objects with the Mouse

Chapter 7. Drawing and Masking
With ActionScript, you can programmatically draw many display objects such as Shape, Sprite, Button, and MovieClip. Each of these classes has a graphics property that is an instance of the flash.display.Graphics class. The Graphics class defines an API for drawing content programmatically. Most recipes in this chapter discuss how to use the Graphics class API.
Recipe 7.1. Setting a Line Style
Recipe 7.2. Setting Gradient Line Styles
Recipe 7.3. Drawing a Line
Recipe 7.4. Drawing a Curve
Recipe 7.5. Drawing an Arc
Recipe 7.6. Drawing a Rectangle
Recipe 7.7. Drawing a Circle
Recipe 7.8. Drawing an Ellipse
Recipe 7.9. Drawing a Triangle
Recipe 7.10. Drawing Regular Polygons
Recipe 7.11. Drawing a Star
Recipe 7.12. Filling a Shape with a Solid or Translucent Color
Recipe 7.13. Filling a Shape with a Gradient
Recipe 7.14. Filling a Shape with a Bitmap
Recipe 7.15. Scripting Masks

Chapter 8. Bitmaps
Before Flash 8, support for bitmap images was minimal. Although they could be loaded and displayed, there wasn't much you could do with them at runtime. The BitmapData class offers a nice set of tools for creating and manipulating bitmap graphics at runtime in Flash, and is featured in this chapter.
Recipe 8.1. Creating a BitmapData Object
Recipe 8.2. Adding a Bitmap to the Display List
Recipe 8.3. Drawing a Display... Read more ›
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



Inside This Book (learn more)
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
programming sound, rendering engine, loading variables, socket programming, validating user input, custom classes, solution add, finding elements, molestie erat, custom visual classes, local connection object, fringilla sed, tortor purus, nulla tortor, epoch milliseconds, child display objects, display object containers, local connection instance, display list model, receiving movie, interactive display object, external sound files, elementum vel, radix parameter, import flash
Key Phrases - Capitalized Phrases (CAPs): (learn more)
Flash Player, Solution Use, Flash Remoting, Solution Create, Flex Builder, Discussion There, Discussion Recipe, Data Format, Programmatic Animation, Times New Roman, Array Utilities, Runtime Environment, Settings Manager, Sending Data, Internet Explorer, Zip Code, Other Movies, Example Corp, Adding Elements, Flash Media Server, File Management, Tue Jan, Inserting Leading, Performing Actions Conditionally, Building Integrated Applications
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(15)
(12)
(11)
(5)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums





Look for Similar Items by Category


Look for Similar Items by Subject