Actionscript Basics – Functions

Functions with Actionscript Overview

Learning how to write and call functions is an important part of any programming language. Functions allow you to modularize your code into reusable groupings or routines. There are two main aspects to functions: how to create the function and then how to call the function. In the video tutorial below, I discuss the basic format of the function in Flash CS6 Actionscript 3. How to create or declare the function, how to call the function, and how to pass data to the function through parameters.

Video Tutorial

In this video, I show to create and call a function in Actionscript 3.0 and 2.0


Week 3

{loadposition adposition4}


This week we will to continue to explore Actionscript basics like conditional statements, functions and event handlers, in order to add greater interactivity to our Flash movies. You will also get a chance to further explore your creativity and develop your skills in creating vector graphics and animation with the Flash tools and timeline.

{loadposition adposition5}You will want to visit these articles to watch the video tutorials on Actionscript basics:

Actionscript Basics – if statements 


Week 3 Assignment – Create a Flash Mr. Potato Head

In this assignment you will create an interactive Mr. Potato Head in Flash. Just like the actual Mr. Potato Head toy, your Flash Mr. Potato Head should be able to change: Hats, Eyes, Nose, Mouth, Ears, Arms etc. At least one of the changeable body parts should be animated, for instance the eyes might blink. Please be as creative as possible with your ideas. I will understand if your computer graphics are not the quality of a graphic designer. You may even choose to use photographic images for your body parts (eg. your hats could be acquired from digital images or photographs).

Create a Flash Mr. Potato Head – Actionscript 2.0

Due date: End of week 4

Please post your Mr. Potato Head assignment, Flash document (.fla) file and Flash movie (.swf) into the Danscourses Forum under the appropriate topic. See if you can embed your Flash movie (.swf) in to the post so everyone can see it easily.



Create a Cartoon Penguin in Flash CS6

Video Tutorials

In this tutorial, I use the drawing tools to create the pieces of the cartoon penguin

In this tutorial, I convert the pieces of the cartoon penguin into movieclip symbols

In this part, I animate the penguin using keyframes, nested timelines, pivot points, and the transform tool