« Gen Y, Web 2.0 and the Future of Your eLearningAtlantic Link or Rapid Intake »

Flash ActionScript 3.0 :: Tutorial

02/08/09

This tutorial was my presentation at the ASTD TK 08 show in San Antonio Texas. While running the creation stations at this year's conference, many people asked me about the materials I used for last year's session. Yes, the main interface is CS3, not the current CS4, but ActionScript hasn't changed. Therefore, this manual can be very helpful if you are making the bridge to AS 3.0 from AS 2.0, or you want to just get started with AS 3.0.

Foundational ActionScript 3.0 with Flash CS3 for the Online Learning Developer
ASTD TK 2008

Module 1: Communicating with ActionScript
Module 2: Using and Writing Functions
Module 3: Basic Interactivity
Module 4: Decision Making
Module 5: Text and Text Fields
Module 6: Video and Audio
Module 7: Creating Online Learning

In Module 7, I have created two (2) sample AS 3.0 eLearning interfaces that can be used to easily drop in content. The first one (Template 001) is a single .swf file and it is a time-line based, "menu on the left" driven course. It is a single file which is quick and easy to use. Functions included in interface 001:

  • Clicking on a button and going to a URL
  • Clicking on a button and going to the next frame
  • Clicking on a button and going to a previous frame
  • Dynamically pulling data about frame position and total frame numbers
  • A movie clip code changing properties of the parent movie

The .fla and .swf code is in the module 7/template001 directory.

The second interface is a bit more advanced. It consists of a single .swf file containing the menu and interface elements. However, when the user clicks on the menu, it dynamically loads the new module .swf files into itself. I used to use this technique in AS 2.0 all the time:

loadMovieNum

It was my favorite function!

Unfortunately, they killed it in AS 3.0.XX( This template contains the code for building eLearning using AS 3.0 that mirrors the functionality I used to enjoy in AS 2.0. Functions included in Interface 002:

  • Clicking on a button and going to a URL
  • Clicking on a button and going to the next frame
  • Clicking on a button and going to a previous frame
  • Dynamically pulling data about frame position and total frame numbers
  • Dynamically loading new .swf files into the main file
  • Independent controls existing inside of a loaded .swf
  • A movie clip code changing properties of the parent movie

The .fla and .swf code for the start page and all the additional pages is in the module 7/template002 directory.

This course took a lot of time and work to complete. I offer you these two templates so that they can potentially shave a ton of time off of your eLearning development, or provide you with code snippets to use in your own projects. Please feel free to download and use as you see fit.

However I ask you:

  1. Please don't mass distribute in your office - don't make a ton of copies and give them to all your friends
  2. Please don't use it to teach a class - don't download it and then use it as your own course materials
  3. Please don't use download it and then distribute it off of your web site
  4. If you found it useful and it saved you time, please add a comment to this page - it helps my SEO
  5. If this was crazy helpful and it saved your bacon at 3:00 am, please consider a donation. It encourages me to continue posting these types of tutorials and helpful files, as well as creating new ones for your use as an eLearning developer

Thanks and enjoy the tutorial! And if you donate, thank you very much for the contribution!

Download the file - 23 MB zip file






Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

9 comments

Comment from: sumanth [Visitor]
****-
nice tutorial
04/27/09 @ 02:38
Comment from: Sharedtut [Visitor] Email · http://sharedtut.com
*****
Great article, thank you for putting all of this information together.
02/03/10 @ 08:05
Comment from: Win Ko Ko [Visitor]
*****
Thank you for sharing this tutorial
03/01/10 @ 01:28
Comment from: chandra [Visitor]
*****


Very useful training material ... thanks for wonderful post
04/29/10 @ 02:11
Comment from: Travis Smith [Visitor] · http://wordpresssmith.com
*****
Great post. The only other thing I am looking for is a tutorial on creating a custom player that has the course ouline, presenter/SME mini-bio, and course content (similar to Articulate but I believe Articulate is extremely limiting). I have been looking for something like this for over a year, and I stumbled upon it looking for something about AS3. Thanks!

05/18/10 @ 09:43
Comment from: Derick Jones [Visitor] · http://u-2-me.com/
*****
Your tutorials and training materials rock! Keep them coming. God bless.
05/24/10 @ 23:32
Comment from: Alex [Visitor] · http://ajdf.co.uk
*****
Just what I was looking for. Having been employed for 3 years working on ASP.net web sites, I totally lost touch with my old Flash skills. I have since gone alone into freelance again and the need for my Flash skills has arisen - a client wants some e-learning type animated quizes for learning driving manouvres. Even though I could have done it all in AS2 the old way, I decided to try and do with ActionScript3.0 as this feels like I'm 'going forwards' rather than clinging on to the old. HOWEVER - it has proven far more frustrating and difficult to grasp than I imagined. Even the most simple operations such as 'getURL' and 'LoadMovieNUm' have proven hard to implement. Its just like if you've been skiing for a few years and then one day you try snowboarding. You feel like a total beginner again even though you're on familiar terrain.

Your samples here I think are going to help me a lot. I will be donating $ to you if I get this project done today.

All the best -
Alex
08/12/10 @ 07:45
Comment from: sunhonghwang [Visitor]
*****
This is the type of the lesson that I am looking for.
Thank you so much. I hope I have a chance to see you in person.
Have you ever thought about writing a book on this subject?
I will definitely buy it. I can tell you are a good writer by reading your instruction. It is succinct and clear.
07/31/11 @ 13:42
Comment from: babafakruddin [Visitor]
thanxs for putting zip folder.
12/07/11 @ 00:14

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

Very few people are creating technology exclusively for the online learning developer, so this site attempts to fill that gap. Whether you want ideas on how to use web technologies in your eLearning, or have questions about the what's and how's, this site is for you.

February 2012
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Search

XML Feeds

powered by b2evolution