I l @ ve RuBoard |
Actually, computers don't think at all. They mindlessly follow instructions. They take these instructions very literally. A Flash script is a list of instructions. However, it is best not to think of them as a list of instructions addressed to the computer but to the Flash runtime environment. Scripts tell Flash what to do. When you look at a code listing, you can "play computer" by reading the code and predicting what the computer will do each step of the way. To play computer, you pretend that you are the computer, or more specifically , that you are Flash. You read each line of the program and pretend that it is an instruction that you must carry out. For instance, if you are supposed to jump from one frame in the Flash movie to another, you imagine that the Flash movie is now on the destination frame and waiting for the next instruction. You then read the next line and follow that instruction. By playing computer, you can predict what your scripts will do. You can troubleshoot your scripts this way and fix problems in them before you even run the program once. Soon, playing computer will be something that you do naturally as you program. When you write a line of code, you will imagine what Flash will do with that instruction. As you write a whole script, you will constantly be checking your code by doing this.
|
I l @ ve RuBoard |