Skip to Navigation | Skip to Content

ActionScript 3 Tutorials and Sample Files

Introduction to Actionscript

VIDEO TUTORIALS

  1. Welcome and Introduction - What is Actionscript?
  2. What is a program? - The Language of Programming
  3. The Language of Actionscript - English v. AS

Trace Statements, Comments, and the Actions Panel

VIDEO TUTORIALS

  1. Trace Statements
  2. Comments
  3. The Actions Panel

SOURCE Files (right click, save link as to download)

Variables, Values, and Data Types

VIDEO TUTORIALS

  1. What is a variable
  2. Declaring a variable
  3. Datatyping a variable

SOURCE FILES AND SAMPLE CODE

Functions

VIDEO TUTORIALS

  1. Functions - Basics
  2. Functions - Adding an Argument/Passing a Value
  3. Functions - Returning a Value

SOURCE FILES AND SAMPLE CODE

Event Listeners and Handlers

VIDEO TUTORIALS

  1. Event Listeners and Handlers - Mouse Events

SOURCE FILES AND SAMPLE CODE

Conditionals (Logic and Decision Making)

VIDEO TUTORIALS

  1. Conditionals - If, Else If, and Else
  2. Conditionals - Switch
  3. Conditionals - Passwords (Quiz #1 Review)

SOURCE FILES AND SAMPLE CODE

Controlling MovieClips (Methods and Properties)

VIDEO TUTORIALS

  1. Controlling MovieClips - Intro
  2. Controlling MovieClips - Instance Names
  3. Controlling MovieClips - Methods (Part 1)
  4. Controlling MovieClips - Absolute vs. Relative Paths
  5. Controlling MovieClips - Dynamic Instance Names
  6. Controlling MovieClips - Methods (Part 2)
  7. Controlling MovieClips - Properties
  8. Controlling MovieClips - Effects (Filters, BlendModes, Color)

SOURCE FILES AND SAMPLE CODE

Math Class

VIDEO TUTORIALS

  1. The Math Class - Randomization, Rounding

SOURCE FILES AND SAMPLE CODE

Looping and Iteration

VIDEO TUTORIALS

  1. For Loops
  2. While Loops
  3. Loop Caveats and Warnings
  4. Applying a Loop and Do While Loops
  5. Looping through Arrays (see #3 in Arrays below)

SOURCE FILES AND SAMPLE CODE

Arrays

VIDEO TUTORIALS

  1. Arrays - What is an Array, Creating and Populating Arrays
  2. Array Methods and Properties (push,pop,shift, length, etc)
  3. Looping through Arrays (Quiz #3 Review)

SOURCE FILES AND SAMPLE CODE

Dragable Movieclips and a Puzzle Game

VIDEO TUTORIALS

  1. Drag and Drop, Hit Tests, and Dragable, Double-Click Collapsible Windows
  2. Puzzle Game - Part 1 - Creating the pieces
  3. Puzzle Game - Part 2 - Coding the first dragable piece
  4. Puzzle Game - Part 3 - More modular code and using arrays and loops to enable functionality on every piece
  5. Puzzle Game - Part 4 - Finishing touches for a video puzzle

SOURCE FILES AND SAMPLE CODE

BONUS MORE ADVANCED DEMOS

Enter Frame Events and Programmatic Animation

VIDEO TUTORIALS

  1. Enter Frame Events and Frame Loops
  2. Event.ENTER_FRAME for coding animation (Quiz #4 Review)
  3. Using stage.stageHeight to check if offscreen
  4. Adding Physics (acceleration/gravity) and Bouncing

SOURCE FILES AND SAMPLE CODE

Programmatic Animation and A Flying Character with Interactive Control Using Keyboard-Input

VIDEO TUTORIALS

  1. Programmatic Animation - Part 1 - Responding to Keyboard Events
  2. Programmatic Animation - Part 2 - Adding Acceleration, Gravity, Friction, etc.
  3. Programmatic Animation - Part 3 - Adding Boundaries/Constraints to the Movement and Other Details
  4. Programmatic Animation - Part 4 - Adding and Animating Background Elements

SOURCE FILES AND SAMPLE CODE

Dynamically Adding Content (URL Requests, the Loader Class, and addChild)

VIDEO TUTORIALS

  1. URL Request, Loader Class and addChild (Quiz #5 Review)
  2. Adding to a Display Object Container and waiting for the Load Event to COMPLETE
  3. Centering and Fading In Content

SOURCE FILES AND SAMPLE CODE

Creating a Custom Cursor

VIDEO TUTORIALS

  1. Custom Cursors - Part 1 - Basics
  2. Custom Cursors - Part 2 - Adding Functionality
  3. Custom Cursors - Part 3 - Rotate to Mouse
  4. Custom Cursors - Setting the Reg Point/Hammer Cursor

SOURCE FILES AND SAMPLE CODE

Sound

VIDEO TUTORIALS

  1. Sound - Basics
  2. Sound - Buffering
  3. Sound - Controlling Playback
  4. Sound - Volume and Panning
  5. Sound - Advanced Controls and Visualization

Example Web Page with MP3 Player/Controls/Visuals

SOURCE FILES AND SAMPLE CODE

Mobile

Video Tutorials and Sample Files on for Mobile

Touch, Swipe, Accelerometer (shake), Drag and Drop, Sound + More

Game Demos

Game Demos

  1. bullet-demo
  2. dragonfly-game-demo
  3. puzzle-game-arrays-demo
  4. rocketship-demo
  5. whack-a-mole-demo

SOURCE FILES AND SAMPLE CODE