Archive for the ‘ActionScript’ Category

Beginning ActionScript 3.0 – Default values

pool-leaf-128x128 Now, we can use the var statement to declare a variable, and stores the values which may get changed during the running time, while we use the const statement to declare a constant, stores the values won’t get changed during the whose application’s life circle.

(more…)

Beginning ActionScript 3.0 – Literal and Constant

bruce-256x256 Get confused with the data types? Eh, it seems that we introduced a little more types and too much concepts in a time. But, you don’t need to worry about it, you just need to know that there exist such things now, and you’ll get familiar with them after some practices.

(more…)

Beginning ActionScript 3.0 – Data type

Have you try to declare a variable with the var statement. If you try the following statement,

  1. var msg;

You will get a complier warning in the strict mode, because you haven’t designated the variable’s type. In general, you should designate a type to the variable you declare by appending the variable name with a colon (:), followed by the variable’s type. Just as

(more…)

Beginning ActionScript 3.0 – Variables

Firefox-old-school-final-256x256 What we have done in previous section?

We draw a text field on the stage, and give it an instance name “dText”. And then we write down the following code.

(more…)

Beginning ActionScript 3.0 – Build the first ActionScript project

book-128x128 About beginning ActionScript 3.0: This will be a series of articles which introduces the basic concepts of ActionScript 3.0. Aiming to help the beginners get familiar with this new version of ActionScript. So, if you already know the basic concepts about ActionScript 3.0, this series will not suitable for you.

(more…)