ActionScript 3 Tutorials and Sample Files
Trace Statements, Comments, and the Actions Panel
VIDEO TUTORIALS
SOURCE Files (right click, save link as to download)
Variables, Values, and Data Types
VIDEO TUTORIALS
SOURCE FILES AND SAMPLE CODE
Functions
VIDEO TUTORIALS
SOURCE FILES AND SAMPLE CODE
Event Listeners and Handlers
VIDEO TUTORIALS
SOURCE FILES AND SAMPLE CODE
Conditionals (Logic and Decision Making)
VIDEO TUTORIALS
- Conditionals - If, Else If, and Else
- Conditionals - Switch
- Conditionals - Passwords (Quiz #1 Review)
SOURCE FILES AND SAMPLE CODE
Controlling MovieClips (Methods and Properties)
VIDEO TUTORIALS
- Controlling MovieClips - Intro
- Controlling MovieClips - Instance Names
- Controlling MovieClips - Methods (Part 1)
- Controlling MovieClips - Absolute vs. Relative Paths
- Controlling MovieClips - Dynamic Instance Names
- Controlling MovieClips - Methods (Part 2)
- Controlling MovieClips - Properties
- Controlling MovieClips - Effects (Filters, BlendModes, Color)
SOURCE FILES AND SAMPLE CODE
Math Class
VIDEO TUTORIALS
SOURCE FILES AND SAMPLE CODE
Looping and Iteration
VIDEO TUTORIALS
- For Loops
- While Loops
- Loop Caveats and Warnings
- Applying a Loop and Do While Loops
- Looping through Arrays (see #3 in Arrays below)
SOURCE FILES AND SAMPLE CODE
Arrays
VIDEO TUTORIALS
- Arrays - What is an Array, Creating and Populating Arrays
- Array Methods and Properties (push,pop,shift, length, etc)
- Looping through Arrays (Quiz #3 Review)
SOURCE FILES AND SAMPLE CODE
Dragable Movieclips and a Puzzle Game
VIDEO TUTORIALS
- Drag and Drop, Hit Tests, and Dragable, Double-Click Collapsible Windows
- Puzzle Game - Part 1 - Creating the pieces
- Puzzle Game - Part 2 - Coding the first dragable piece
- Puzzle Game - Part 3 - More modular code and using arrays and loops to enable functionality on every piece
- Puzzle Game - Part 4 - Finishing touches for a video puzzle
SOURCE FILES AND SAMPLE CODE
BONUS MORE ADVANCED DEMOS
- Magnetic Poetry with Randomized Words (click for HTML sample)
- magneticPoetry.fla (right click to download sample code/file)
- Choose Your Picture Puzzle (click for HTML sample)
- puzzleWithBitmapBreakApart.fla (right click to download sample code/file)
Enter Frame Events and Programmatic Animation
VIDEO TUTORIALS
- Enter Frame Events and Frame Loops
- Event.ENTER_FRAME for coding animation (Quiz #4 Review)
- Using stage.stageHeight to check if offscreen
- 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
- Programmatic Animation - Part 1 - Responding to Keyboard Events
- Programmatic Animation - Part 2 - Adding Acceleration, Gravity, Friction, etc.
- Programmatic Animation - Part 3 - Adding Boundaries/Constraints to the Movement and Other Details
- 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
- URL Request, Loader Class and addChild (Quiz #5 Review)
- Adding to a Display Object Container and waiting for the Load Event to COMPLETE
- Centering and Fading In Content
SOURCE FILES AND SAMPLE CODE
Creating a Custom Cursor
Sound
VIDEO TUTORIALS
- Sound - Basics
- Sound - Buffering
- Sound - Controlling Playback
- Sound - Volume and Panning
- Sound - Advanced Controls and Visualization
Example Web Page with MP3 Player/Controls/Visuals
SOURCE FILES AND SAMPLE CODE
- soundbasics.fla (basics)
- soundbasics.html
- soundcontrols.fla (advanced)
- soundcontrols.html
Mobile
Video Tutorials and Sample Files on for Mobile
Touch, Swipe, Accelerometer (shake), Drag and Drop, Sound + More
- Setup and importing of assets
Source: monkeyassets.fla - Touch to Play
Source: touchToPlay.fla - Touch to Play Multiple Sounds
Source: touchToPlayMultiple.fla - Touch to Play Random Sound
Source: touchToPlayRandom.fla - Swipe to Play
Source: swipeToPlay.fla - Touch, Move, and Drag
Source: touchToDragPlay.fla - Gaining Sound Control Timers and Event Complete
Source: touchToDragPlayTimer.fla
Source: touchtoDragPlaySoundComplete.fla - Working with Accelerometer Events
Source: accelerometer.fla - Shake To Play
Source: shakeToPlay.fla