Free Flash Tutorials

Home • Members Tutorials Forum iSnapChat Contact Us 

 


Flash Tutorials

   

Flash - Intro to Functions

505 ActionScript
Flash Compatibility: MX

Written by: Phil

Length: 1800 words

Assumed Knowledge : Understand variables, be able use buttons, text boxes and expert mode actions.

 

Access: Members Bonus tutorial. For the full version you must: LOG ON To become a Member: Click here

 

For Free Tutorials: See listings: Free Tutorials

 

 

 

This tutorial explains what functions are for and goes through the syntax. There are two Flash movies to download which use simple functions and a detailed explanation of how to create one of these. If you are unsure about variables you should do that tutorial first. Click here to for: ActionScript Variables

 

Procedures, Subroutines or Functions

 

In programming procedures enable you to create a prototype for a particular action. Instead of writing the same piece programming again and again, every time you what to do a specific action, you create a standard piece of code which you call upon when you need it. This is called Procedural programming or a Subroutine. In Flash it is called a Function.

 

Think of a function as a 'thing' that does a specific job. For example a toaster does a specific job. You put in a piece of bread and out comes toast. You would not expect a toaster to do the washing. A function is like that. It does a specific job. Once you have created it (and it works) you no longer need to worry about how it works. Just like a toaster. You put bread in, toast comes out. Simple eh!

 

Advantages to using Functions

 

This is a members only bonus tutorial. For the full text you must: LOG ON


For a full list of Free tutorials click here

 

 

 

 



Phil Schulz's Facebook Profile
Webwasp is Phil Schulz's baby. You are welcome to contact me or become my Facebook friend: Click here

 Top of Page HomeMembers Tutorials Forum iSnapChat Contact Us 
 All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.