Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / ActionScript Technology Center /

Learning ActionScript 3 excerpts: OOP overview, display list, and programmatic motion

by Rich Shupe

Rich Shupe

by Zevan Rosser

Zevan Rosser

Created

23 June 2008

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
ActionScript animation display list Flash Professional OOP

ActionScript 3 represents a significant change for many Flash users, and a steeper learning curve for the uninitiated. To make learning easy for you and to demonstrate how you can use the Flash language for practical, everyday projects, Rich Shupe and Zevan Rosser share their knowledge in Learning ActionScript 3.

If you are new to the language, follow this hands-on book to learn how ActionScript and Flash work together. You'll get a clear look into essential topics such as logic, event handling, displaying content, classes, and migrating legacy projects to ActionScript 3. The first few chapters expand your skill set by taking you through a variety of scripting scenarios and focusing on clear, concise examples in the Flash Timeline that do not draw heavily on prior knowledge of object-oriented programming (OOP). As the chapters progress, the book gradually introduces more and more OOP techniques, allowing you to choose which scripting approach you prefer.

If you are already comfortable with OOP, refer to the companion website for all the exercises in the book, as well as short quizzes to make sure you're up to speed with key concepts. Topics in Learning ActionScript 3 also include:

  • New ways to harness the power and performance of ActionScript 3
  • Common mistakes that people make with the language
  • Essential coverage of text, sound, video, XML, and drawing with code
  • Migration issues from ActionScript 1 and ActionScript 2 to ActionScript 3
  • Simultaneous development of procedural and object-oriented techniques
  • Tips that go beyond simple script collections, including how to approach a project and which resources can help you along the way

The printed book is available through most major online and retail bookstores worldwide, and can be read online at Safari Books Online. For more information visit the O'Reilly store.

Learning ActionScript 3 © 2008 Rich Shupe. Reproduced by permission of O'Reilly Media Inc. All rights reserved.

ActionScript overview

Chapter 1 covers basic information on ActionScript 3, the Flash platform, procedural versus OOP, the Document class, and legacy code compatibility. It provides a brief overview of ActionScript development, giving you some insight into its use—particularly related to Flash Player and how it handles different versions of ActionScript. It tells you how this version of ActionScript is handled separately from its previous versions at runtime, yet explains how the fundamentals of the language are the same throughout.

The chapter also provides answers to questions like why moving to ActionScript 3 doesn't require you to become an expert at OOP and how Flash CS3 offers a simpler entrance to an OOP application by way of the Document class. Finally, the section on legacy code compatibility briefly introduces the issues involved in developing projects on ActionScript 3 that support older code.

Download the complete chapter:

  • Chapter 1: ActionScript overview (PDF, 744K)

The display list

Chapter 4 explores the properties of the newly introduced display list in ActionScript 3. One of the most dramatic changes for those designers accustomed to prior versions of ActionScript is the way in which visual elements are added to an application at runtime. ActionScript 3 brings with it an entirely new way of handling visual assets. The display list is a hierarchical list of all visual elements in your file. This chapter introduces you to different objects that can be part of the display list, and helps you grasp the simple difference between display objects and display object containers. It also provides information on manipulating existing members of the display list, adding and removing objects from the list, and changing the hierarchy of assets. The concluding section shows you how to dynamically generate a very simple navigation bar.

Download the complete chapter:

  • Chapter 4: The display list (PDF, 1.1 MB)

Motion

Chapter 7 takes an in-depth look at programming motion in ActionScript 3. Because motion can cover a large number of concepts, the book focuses on only a few—offering simplified simulations in each area and presenting approaches that are simple enough to integrate into your projects with ease.

You begin with simplified movement before learning how to determine the distance between two objects, and then how to animate objects in a circular path and point objects at a specific location. You also learn how to add realism to animations by simulating friction, elasticity, and gravity.

In the section on programmatic tweening, you will read about the Tween class and its occasional partner, the Easing package. The new Animator class in ActionScript 3 can read the XML that you export from timeline tweens and recreate that animation with ActionScript. You will create a simple player for displaying such an animation.

The chapter ends with an applied example of creating a simple particle, covering much of what has been discussed in the chapter.

Download the complete chapter:

  • Chapter 7: Motion (PDF, 2 MB)

More Like This

  • Top five misperceptions about ActionScript 3
  • ActionScript 3.0 Quick Reference Guide excerpts: Copy motion, display list, events, and migration
  • Handling audio file cue points in ActionScript 2 and ActionScript 3
  • Top five benefits of ActionScript
  • Tips for learning ActionScript 3.0
  • Introduction to event handling in ActionScript 3.0
  • Developers and designers talk about migrating to ActionScript 3
  • ActionScript 3.0 overview
  • ActionScript 3.0 from the ground up
  • Essential ActionScript 3 excerpt: Display and interactivity

Tutorials & Samples

Tutorials

  • Flash iOS Apps Cookbook excerpt: ActionScript optimization
  • Introduction to Robotlegs – Part 3
  • Introduction to Robotlegs – Part 2
  • Introduction to Robotlegs – Part 1

Samples

  • ActionScript 3 samples for Flash Professional CS5

ActionScript Blog

More
06/09/2012 New Flash Tools: Flash Optimizer 2.3
06/09/2012 Flash Optimizer 2.3
05/27/2012 How to add an image to android gallery (CameraRoll) using adobe air
04/22/2012 ActionScript 3.0 BitmapData, Clone, and ColorTransform

ActionScript Cookbook

More
03/20/2012 PDF Portfolio Navigational TOC
02/29/2012 Embed Stage3D content inside Flex application components
02/13/2012 Randomize an array
02/09/2012 Using Camera with a MediaContainer instead of VideoDisplay

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement