Action Scripting 3.0 | Alejandra Jarabo |
Media Arts & Technologies. Santa Barbara City College |
PROGRAMING CONCEPTS |
VARIABLES | |||||||||||||||||||||||||||||||||||||||||||||
A Variable is a container/envelope/ box that holds data (It's a place were you can hold information) A variable is represented by a name. |
|||||||||||||||||||||||||||||||||||||||||||||
Variables most often hold one of 3 types of information (it is called data type),
|
|||||||||||||||||||||||||||||||||||||||||||||
HOW TO DECLARE A VARIABLE | |||||||||||||||||||||||||||||||||||||||||||||
The name of the variable should be one word, easy to remember or identify, lowercase, no special characters. REMEMBER to end every line of code with a semicolon (;)
|
|||||||||||||||||||||||||||||||||||||||||||||
HOW TO CHANGE THE VALUE OF A VARIABLE | |||||||||||||||||||||||||||||||||||||||||||||
To check the current value of a variable or simply check if it´s working, you can use the function trace trace() Place the name of your variable inside the parenthesis.
| |||||||||||||||||||||||||||||||||||||||||||||