Advertisment
In this tutorial I will explain how to pass variables to flash and what dynamic things you could do with passing variables.
There are times when you will want to have a section of ActionScript code reused. In those cases, functions play an important role. A function is a...
This short article is on variable naming in the new Actionscript 2.0 (and 1.0, I guess).
Most of the best programmers on the world will tell you that: always comment on your code. For yourself and for the others. This is absolutely vital.
The naming scheme of your movie is very important for readability purposes.
Global variables are useful when you want a variable to be accessible from anywhere in your movie, even in different scenes.
This is not a very important issue for small movies, but it is a good thing to think about it.
One of the first problems programmers encountered when switching from Flash 5 to Flash MX was the variables scope.
We have talked already about scope issues and addressing. They're tricky. Well there's very particular issue I want to talk to you about:...
_root is an alias, just as _parent and this.
First: what does increment mean? When I say that I increment a value by 1, it only means that I add 1 to this value. There are several ways I can...
There are several times when I found it helpful to get the position of an item contained in an array.
To make a duplicate of an array proves more difficult than it seems.
This operator is also used to shorten if tests. It is used in the case that: if something is true, then 1 (or 0) thing happens, otherwise 1 (or 0)...
An easy method to randomizing colors.
What the color object does is allows you ways to apply color and alpha effects to movieclip objects much in the sense of a filter.
Using the drawing API is not the easiest thing in the world, but once you get the hang of it, you can produce very easily lots of cool all-code...
Now dynamic event handlers are really one of the best things that Flash MX brought, as they allow us to change a handler at run time. You may...
for...in loops are tricky to use. What they do is simple though: they reference everything they find in an object and put it in an array.
In programming, it is nice to be able to create numbers that occur unexpectedly