Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy 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
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
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
ActionScriptanimationdisplay listFlash ProfessionalOOP
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.

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

  • Six reasons to use ActionScript 3.0
  • Creating a preloader in Flash
  • Introduction to event handling in ActionScript 3.0
  • ActionScript 3 Design Patterns excerpt: Factory method and MVC
  • Essential ActionScript 3 excerpt: Display and interactivity
  • ActionScript 3.0 overview
  • ActionScript 3 Cookbook excerpts: From custom classes to the rendering model
  • Flash iOS Apps Cookbook excerpt: ActionScript optimization
  • Introduction to Robotlegs – Part 3: Services
  • Introduction to Robotlegs – Part 2: Models

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

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 © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement