By admin | March 21, 2009
An array is a type of variable that can hold many other variables. Arrays are commonly used to hold and organize related information. You may think of an array like a filing cabinet. Each drawer can contain different information, and you may retrieve it if you know the correct drawer number. An array is declared [...]
By admin | March 11, 2009
There are two main ways of having interactivity via a keyboard in flash. The first is to have the user type into a text box like we did in this tutorial where we set up a very unintelligent conversation bot. The second form of keyboard interactivity is to use an event listener to trigger an [...]
You should now have a sense of what variables are, how to make them, and how to change their values. Now we can check the value of our variables and if they meet certain conditions, stuff will happen! That is the purpose of conditional statements, and is a good part of why computers are notorious [...]
A lot of actionscript programming relies on triggering code on certain event. An event could be such things as a mouse click, a key press, or upon entering a frame. We need to create actionscript listeners that listen for these events and then act upon them. The most common event listener you will encounter is [...]
What is a function? A function is a chunk of code that runs only when we ask it to. Functions usually perform specialized tasks and can be used again and again. One of the reasons they are handy is that after the function has been created, we don’t have to concern ourselves with it works [...]
At the core of actionscript (like many programming languages) is the setting and checking of variables. Variables are simply pieces of data, such as a number, a sentence, or a true or false value. To create dynamic or interactive experiences we need to use variables to hold and manipulate data.