Adobe ActionScript 3 - Getting Started — A 2-day course
Synopsis
ActionScript 3 Getting Started is a 2 day blended learning course which gives an introduction to basic programming concepts along with some of the classes that are available within Actionscript 3. You will also go through simple Object Orientated Programming techniques: creating classes, getters and setters, etc.
Suitable For
The course is suitable for anybody new to ActionScript 3 that has either completed the Flash CS4 Getting Started course or already has equivalent experience.
This course is designed for those wishing to learn programming with ActionScript 3.
Prerequisites
- Flash CS4 Getting Started course.
Publicly scheduled dates, locations, and prices
London — £550 (+VAT)
- 10–11 May 2010
Course Contents
Variables
- String variables
- Object variables
- Name conflicts
- Untyped variables
- Default values
- IsNaN
- Deleting variables
Functions
- Creating functions
- Functions and arguments
- Default argument
- Default argument order
- The rest symbol
Objects, Properties, Methods, and Classes
- Trace
- This
- Common properties
- Basic objects
- Common methods
- Common classes
Iteration
- For loops
- Do while loops
- Arrays and for in loop
- Var and for in
- This and for in
- For each loop
- For in and for each in
Display Objects
- Timeline based symbols
- Symbol type
- MovieClip
- Button
- Graphic
- Class type
- MovieClip
- SimpleButton
- Shape
- Text Classes
- StaticText
- TextField
Accessing Display Objects
- Tracing a movieclip's name
- Changing names
- Understanding the Class Inheritance Hierarchy
- Referencing Movie Clips in the Timeline
- The Display List
- The root and stage
- Dynamic display objects
- Bitmaps
- new Bitmaps
- Removing bitmaps
- removeChild()
- Creating Dynamic Instances from the Library
- Dynamic graphics
- Drawing a triangle
Events
- Stage click handler
- ButtonMode
- Reacting to the Mouse
- Event Propagation
- tracing evt.target
- Stage events
- Drag and drop
- Keyboard Events
- Tracing keyCode
Animation
- Moving a ball
- Accelerating a ball
- Controlling a ball
- Adding gravity
- Rotating a movieclip
- Rotating and controlling a movieclip
- Creating balls at random
- Creating balls where the mouse clicks
- Creating balls automatically
- Boundaries
- Bouncing a ball left and right
- Bouncing a ball again
- Moving a ball in x and y directions
- Moving a ball smoothly with oscillation
- Moving a ball with easing
- More easing
Classes
- Creating classes
- Creating methods
- Creating properties
- Using a class-based timer system
Using Custom Classes
- What custom classes are available
- Adding methods to the class
- Adding properties to the class
- Using getters and setters
- Applying the class to a movie clip
- Applying the class to the MainTimeline
