ActionScript
More about ActionScript
Programming Basics
Control Structures
Loops
for (i=0; i<7; i++) {
if (found == false) {
gameover = false;
}
}
While Loops
var x = 1;
while (x <= 5) {
trace (x);
x = x + 1;
}
for (x=1; x<=5; x++) {
trace(x);
}
Functions
function displayArea (width, height) {
trace(width * height); }
Events
on (release) {
if (words._visible == true) {
setProperty(words, _visible, false);
}
else {
setProperty(words, _visible, true);
}
}