Category: Difficulty

Hello. Welcome the your first step into Flash AS3 programming. While this tutorial might seem basic as all hell, it is vital to get you started. So, let’s just jump right into it!

In Flash AS3 (Action Script 3) we have, what is called Object Oriented Programming (or OOP, for short). While I would like to avoid technical terms, let’s just say for now, that everything we have in programming is an “object”. So, a text is and object, an image is an object, a sound is a… Yeah, you guessed it: Object.

So our first goal here is to do a “String” (Text) to appear on screen. It usually is “Hello World”, for no particular reason. It’s just tradition to start with this.

First, let me explain what a “String” is. String is just a text. You might be wondering “what do you mean, a text? Everything written other than Numbers and Symbols is text”. Well, not quite. Although that isn’t entirely wrong, it’s not the complete story.

What’s important here is to differentiate code from text. Strings(or Text) is not interpreted by the program, while non strings will be interpreted.



First of all, a quick intro to Programming. What is programming? Well, programming is basically to “teach a computer to follow some steps to do something”. The problem is that the computer has to know everything before it does something right. This will become rather more complex later on, but the same principle always applies. With this in mind, we can have a simple analogy:

Imagine you want to teach someone to get up from its chair and walk out the room. You just say “Hey, get up and get out, man”. If you are teaching it to a computer, you have to be a lot more specific. So, our previous instruction would become:

"Get up > Move feet to walk until reach door > Turn door handle > Move feet until you are outside of the room > Close door > End"

Fun, huh? Fortunatly, you don’t have to teach computers to walk (although there are people doing it). What you need to do, is to teach them every instruction you need, because he doesn’t “guess” what you want, even is it seems logic to you.

So, jump in another of my tutorials to see this in action.

Marco ‘Fox’ Roberto